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
f4e24f6b3b
commit
4d6713fed2
1 changed files with 11 additions and 3 deletions
|
@ -550,6 +550,14 @@ config("compiler") {
|
|||
} else {
|
||||
cflags += [ "-ffp-contract=off" ]
|
||||
}
|
||||
|
||||
if (default_toolchain != "//build/toolchain/cros:target") {
|
||||
# TODO(crbug.com/1361629): Fix the compiler so this is not needed.
|
||||
cflags += [
|
||||
"-mllvm",
|
||||
"-simplifycfg-hoist-common-skip-limit=0",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
# Rust compiler setup (for either clang or rustc).
|
||||
|
@ -644,8 +652,8 @@ config("compiler") {
|
|||
ldflags += [
|
||||
"/opt:lldltojobs=all",
|
||||
"-mllvm:-import-instr-limit=$import_instr_limit",
|
||||
"-mllvm:-import-hot-multiplier=30",
|
||||
"-mllvm:-import-cold-multiplier=8",
|
||||
"-mllvm:-import-hot-multiplier=15",
|
||||
"-mllvm:-import-cold-multiplier=4",
|
||||
# "/lldltocache:" +
|
||||
# rebase_path("$root_out_dir/thinlto-cache", root_build_dir),
|
||||
# "/lldltocachepolicy:$cache_policy",
|
||||
|
@ -1685,7 +1693,7 @@ config("chromium_code") {
|
|||
}
|
||||
|
||||
# TODO(https://crbug.com/1355871): Enable on more platforms.
|
||||
if ((is_win || is_mac) && target_cpu == "x64") {
|
||||
if (is_win || is_mac || is_linux || is_chromeos) {
|
||||
cflags += [ "-Wextra-semi" ]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue