Update BUILD.gn

This commit is contained in:
Alexander David Frick 2022-08-02 13:41:08 -05:00 committed by GitHub
parent 50cacd7323
commit 4718b6eaa8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -709,6 +709,16 @@ config("compiler") {
ldflags += [ "-fwhole-program-vtables" ]
}
}
if (is_win && target_cpu == "arm64") {
cflags += [ "-O3", "-Wno-error", "-Wno-unreachable-code", "-Wno-unused-command-line-argument", ]
ldflags += [ "-Wno-unused-command-line-argument", ]
}
if (is_linux && target_cpu == "arm64") {
cflags += [ "-O3", "-Wno-error", "-Wno-unreachable-code", "-Wno-unused-command-line-argument", ]
ldflags += [ "-Wl,-O3", "-Wno-unused-command-line-argument", ]
}
# This flag causes LTO to create an .ARM.attributes section with the correct
# architecture. This is necessary because LLD will refuse to link a program