Add compiler optimizations for ARM and ARM64!

This commit is contained in:
Alexander David Frick 2021-12-20 23:24:14 -06:00 committed by GitHub
parent 301efb8fad
commit 49cd74bd8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -900,7 +900,7 @@ config("compiler_cpu_abi") {
}
} else if (current_cpu == "arm") {
if (is_clang && !is_android && !is_nacl) {
cflags += [ "--target=arm-linux-gnueabihf" ]
cflags += [ "--target=arm-linux-gnueabihf", "-mtune=armv8-a", "-O3", ]
ldflags += [ "--target=arm-linux-gnueabihf" ]
}
if (!is_nacl) {
@ -914,7 +914,7 @@ config("compiler_cpu_abi") {
}
} else if (current_cpu == "arm64") {
if (is_clang && !is_android && !is_nacl && !is_fuchsia) {
cflags += [ "--target=aarch64-linux-gnu" ]
cflags += [ "--target=aarch64-linux-gnu", "-march=armv8-a", "-mtune=armv8-a", "-O3", ]
ldflags += [ "--target=aarch64-linux-gnu" ]
}
if (is_android) {