Fix arm/arm64 cflags
This commit is contained in:
parent
b015b33396
commit
bfac52ac9e
1 changed files with 2 additions and 2 deletions
|
@ -916,7 +916,7 @@ config("compiler_cpu_abi") {
|
|||
}
|
||||
} else if (current_cpu == "arm") {
|
||||
if (is_clang && !is_android && !is_nacl) {
|
||||
cflags += [ "--target=arm-linux-gnueabihf", "-mtune=armv8-a", "-O3", ]
|
||||
cflags += [ "--target=arm-linux-gnueabihf", "-O3", ]
|
||||
ldflags += [ "--target=arm-linux-gnueabihf", "-Wl,-O3", ]
|
||||
}
|
||||
if (!is_nacl) {
|
||||
|
@ -930,7 +930,7 @@ config("compiler_cpu_abi") {
|
|||
}
|
||||
} else if (current_cpu == "arm64") {
|
||||
if (is_clang && !is_android && !is_nacl && !is_fuchsia) {
|
||||
cflags += [ "--target=aarch64-linux-gnu", "-march=armv8-a", "-mtune=armv8-a", "-O3", ]
|
||||
cflags += [ "--target=aarch64-linux-gnu", "-O3", ]
|
||||
ldflags += [ "--target=aarch64-linux-gnu", "-Wl,-O3", ]
|
||||
}
|
||||
if (is_android) {
|
||||
|
|
Loading…
Reference in a new issue