mirror of
https://github.com/Alex313031/thorium.git
synced 2025-01-10 03:47:44 -03:00
Update BUILD.gn
This commit is contained in:
parent
69be7178f5
commit
978dc77c9e
1 changed files with 12 additions and 4 deletions
|
@ -543,6 +543,14 @@ config("compiler") {
|
||||||
ldflags += [ "-Wl,-mllvm,-instcombine-lower-dbg-declare=0" ]
|
ldflags += [ "-Wl,-mllvm,-instcombine-lower-dbg-declare=0" ]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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).
|
# Rust compiler setup (for either clang or rustc).
|
||||||
|
@ -637,8 +645,8 @@ config("compiler") {
|
||||||
ldflags += [
|
ldflags += [
|
||||||
"/opt:lldltojobs=all",
|
"/opt:lldltojobs=all",
|
||||||
"-mllvm:-import-instr-limit=$import_instr_limit",
|
"-mllvm:-import-instr-limit=$import_instr_limit",
|
||||||
"-mllvm:-import-hot-multiplier=30",
|
"-mllvm:-import-hot-multiplier=15",
|
||||||
"-mllvm:-import-cold-multiplier=8",
|
"-mllvm:-import-cold-multiplier=4",
|
||||||
# "/lldltocache:" +
|
# "/lldltocache:" +
|
||||||
# rebase_path("$root_out_dir/thinlto-cache", root_build_dir),
|
# rebase_path("$root_out_dir/thinlto-cache", root_build_dir),
|
||||||
# "/lldltocachepolicy:$cache_policy",
|
# "/lldltocachepolicy:$cache_policy",
|
||||||
|
@ -895,7 +903,7 @@ config("compiler_cpu_abi") {
|
||||||
"-mtune=generic",
|
"-mtune=generic",
|
||||||
"-ffp-contract=fast",
|
"-ffp-contract=fast",
|
||||||
]
|
]
|
||||||
ldflags += [ "-m64", "-Wl,-O3", "-Wl,-mllvm,-march=haswell", "-Wl,-mllvm,-fp-contract=fast", "-Wl,-mllvm,-import-instr-limit=30", "-Wl,-mllvm,-import-hot-multiplier=30", "-Wl,-mllvm,-import-cold-multiplier=8", ]
|
ldflags += [ "-m64", "-Wl,-O3", "-Wl,-mllvm,-march=haswell", "-Wl,-mllvm,-fp-contract=fast", "-Wl,-mllvm,-import-instr-limit=30", "-Wl,-mllvm,-import-hot-multiplier=15", "-Wl,-mllvm,-import-cold-multiplier=4", ]
|
||||||
} else if (current_cpu == "x86") {
|
} else if (current_cpu == "x86") {
|
||||||
cflags += [ "-m32" ]
|
cflags += [ "-m32" ]
|
||||||
ldflags += [ "-m32" ]
|
ldflags += [ "-m32" ]
|
||||||
|
@ -1678,7 +1686,7 @@ config("chromium_code") {
|
||||||
}
|
}
|
||||||
|
|
||||||
# TODO(https://crbug.com/1355871): Enable on more platforms.
|
# 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" ]
|
cflags += [ "-Wextra-semi" ]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue