Update BUILD.gn

This commit is contained in:
Alexander David Frick 2022-04-24 17:57:23 -05:00 committed by GitHub
parent 2b402de950
commit 0dddcf106a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,13 +43,13 @@ config("compiler") {
cflags = [ "-O3", ] + common_mac_flags
if (target_cpu == "x64") {
cflags += [ "-maes", "-mavx", "-mavx2", "-ffp-contract=fast", ]
ldflags += [ "-Wl,-march=haswell", "-Wl,-fp-contract=fast", ]
cflags += [ "-maes", "-mavx", "-mavx2", "-ffp-contract=fast", "-mf16c", ]
ldflags += [ "-march=haswell", "-fp-contract=fast", ]
}
if (current_cpu == "x64") {
cflags += [ "-maes", "-mavx", "-mavx2", "-fp-contract=fast", ]
ldflags += [ "-Wl,-march=haswell", "-Wl,-fp-contract=fast", ]
cflags += [ "-maes", "-mavx", "-mavx2", "-ffp-contract=fast", "-mf16c", ]
ldflags += [ "-march=haswell", "-fp-contract=fast", ]
}
# Without this, the constructors and destructors of a C++ object inside