Update BUILD.gn

This commit is contained in:
Alexander David Frick 2022-08-04 06:03:52 -05:00 committed by GitHub
parent e3f8d45cad
commit 0d7ff8748e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -148,16 +148,6 @@ declare_args() {
# The gold linker by default has text section splitting enabled.
use_text_section_splitting = false
# Token limits may not be accurate for build configs not covered by the CQ,
# so only enable them by default for mainstream build configs.
enable_wmax_tokens =
!is_official_build && !(is_component_build && !is_debug) &&
!using_sanitizer &&
((is_mac && target_cpu == "x64" && !use_system_xcode) ||
(is_linux && target_cpu == "x64") || (is_win && target_cpu == "x86") ||
(is_win && target_cpu == "x64") || (is_android && target_cpu == "arm") ||
(is_android && target_cpu == "arm64"))
# Turn off the --call-graph-profile-sort flag for lld by default. Enable
# selectively for targets where it's beneficial.
enable_call_graph_profile_sort = chrome_pgo_phase == 2
@ -1543,9 +1533,6 @@ config("default_warnings") {
# TODO(https://crbug.com/1300731) Clean up and enable.
"-Wno-unqualified-std-cast-call",
# TODO(crbug.com/1343303) Evaluate and possibly enable.
"-Wno-array-parameter",
# TODO(crbug.com/1343975) Evaluate and possibly enable.
"-Wno-deprecated-builtins",
]
@ -1555,10 +1542,6 @@ config("default_warnings") {
# TODO(https://bugs.chromium.org/p/fuchsia/issues/detail?id=77383)
cflags += [ "-Wno-deprecated-copy" ]
}
if (enable_wmax_tokens) {
cflags += [ "-Wmax-tokens" ]
}
}
}
}
@ -2052,6 +2035,12 @@ if (is_win) {
"-mllvm", "-interleave-small-loop-scalar-reduction",
"-mllvm", "-unroll-runtime-multi-exit",
"-mllvm", "-aggressive-ext-opt",
"-mllvm", "-polly-detect-profitability-min-per-loop-insts=40",
"-mllvm", "-polly-invariant-load-hoisting",
"-mllvm", "-polly-position=early",
"-mllvm", "-polly-vectorizer=stripmine",
"-mllvm", "-polly-parallel",
"-mllvm", "-polly-omp-backend=LLVM",
"-mllvm", "-polly",
"-O3",
]