mirror of
https://github.com/Alex313031/thorium.git
synced 2025-01-09 19:37:30 -03:00
Update BUILD.gn
This commit is contained in:
parent
50cacd7323
commit
4718b6eaa8
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue