Update BUILD.gn

This commit is contained in:
Alexander David Frick 2022-06-14 08:11:43 -07:00 committed by GitHub
parent 25c13d3b6d
commit f65f7a4a9b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -917,7 +917,7 @@ config("compiler_cpu_abi") {
} else if (current_cpu == "arm") {
if (is_clang && !is_android && !is_nacl) {
cflags += [ "--target=arm-linux-gnueabihf", "-O3", "-Wno-unused-command-line-argument", ]
ldflags += [ "--target=arm-linux-gnueabihf", "-Wl,-O3", "-Wl,-Wno-unused-command-line-argument", ]
ldflags += [ "--target=arm-linux-gnueabihf", "-Wl,-O3", "-Wno-unused-command-line-argument", ]
}
if (!is_nacl) {
cflags += [
@ -931,7 +931,7 @@ config("compiler_cpu_abi") {
} else if (current_cpu == "arm64") {
if (is_clang && !is_android && !is_nacl && !is_fuchsia) {
cflags += [ "--target=aarch64-linux-gnu", "-O3", "-Wno-unused-command-line-argument", ]
ldflags += [ "--target=aarch64-linux-gnu", "-Wl,-O3", "-Wl,-Wno-unused-command-line-argument", ]
ldflags += [ "--target=aarch64-linux-gnu", "-Wl,-O3", "-Wno-unused-command-line-argument", ]
}
if (is_android) {
# Outline atomics crash on Exynos 9810. http://crbug.com/1272795