Update BUILD.gn

This commit is contained in:
Alexander David Frick 2022-06-14 07:43:18 -07:00 committed by GitHub
parent c2b46be0a2
commit 61ed4534dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -916,7 +916,7 @@ config("compiler_cpu_abi") {
} }
} else if (current_cpu == "arm") { } else if (current_cpu == "arm") {
if (is_clang && !is_android && !is_nacl) { if (is_clang && !is_android && !is_nacl) {
cflags += [ "--target=arm-linux-gnueabihf", "-O3", ] cflags += [ "--target=arm-linux-gnueabihf", "-O3", "-Wno-unused-command-line-argument", ]
ldflags += [ "--target=arm-linux-gnueabihf", "-Wl,-O3", ] ldflags += [ "--target=arm-linux-gnueabihf", "-Wl,-O3", ]
} }
if (!is_nacl) { if (!is_nacl) {
@ -930,7 +930,7 @@ config("compiler_cpu_abi") {
} }
} else if (current_cpu == "arm64") { } else if (current_cpu == "arm64") {
if (is_clang && !is_android && !is_nacl && !is_fuchsia) { if (is_clang && !is_android && !is_nacl && !is_fuchsia) {
cflags += [ "--target=aarch64-linux-gnu", "-O3", ] cflags += [ "--target=aarch64-linux-gnu", "-O3", "-Wno-unused-command-line-argument", ]
ldflags += [ "--target=aarch64-linux-gnu", "-Wl,-O3", ] ldflags += [ "--target=aarch64-linux-gnu", "-Wl,-O3", ]
} }
if (is_android) { if (is_android) {