Update BUILD.gn

This commit is contained in:
Alexander David Frick 2022-07-15 22:11:06 -05:00 committed by GitHub
parent 7325b89b6a
commit 52c11c6a90
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -900,6 +900,11 @@ config("compiler_cpu_abi") {
"-msse3",
]
}
} else if (target_cpu == "arm64") {
if (!is_android && !is_nacl) {
cflags += [ "-O3", "-Wno-unused-command-line-argument", ]
ldflags += [ "-Wl,-O3", "-Wno-unused-command-line-argument", ]
}
} else if (current_cpu == "arm") {
if (is_clang && !is_android && !is_nacl &&
!(is_chromeos_lacros && is_chromeos_device)) {