mirror of
https://github.com/Alex313031/thorium.git
synced 2025-01-10 11:57:48 -03:00
Update BUILD.gn
This commit is contained in:
parent
f075ecc22f
commit
9330b2ee09
1 changed files with 14 additions and 3 deletions
|
@ -682,9 +682,11 @@ config("compiler") {
|
||||||
# of "all" which means number of hardware threads) is faster.
|
# of "all" which means number of hardware threads) is faster.
|
||||||
ldflags += [ "-Wl,--thinlto-jobs=all" ]
|
ldflags += [ "-Wl,--thinlto-jobs=all" ]
|
||||||
if (is_apple) {
|
if (is_apple) {
|
||||||
ldflags +=
|
ldflags += [
|
||||||
[ "-Wl,-cache_path_lto," +
|
"-Wl,-cache_path_lto," +
|
||||||
rebase_path("$root_out_dir/thinlto-cache", root_build_dir) ]
|
rebase_path("$root_out_dir/thinlto-cache", root_build_dir),
|
||||||
|
"-Wcrl,object_path_lto",
|
||||||
|
]
|
||||||
} else {
|
} else {
|
||||||
ldflags +=
|
ldflags +=
|
||||||
[]
|
[]
|
||||||
|
@ -1538,6 +1540,15 @@ config("default_warnings") {
|
||||||
cflags += [ "-Wno-unqualified-std-cast-call" ]
|
cflags += [ "-Wno-unqualified-std-cast-call" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!is_nacl && !(is_chromeos ||
|
||||||
|
default_toolchain == "//build/toolchain/cros:target")) {
|
||||||
|
# TODO(https://crbug.com/1322823): Remove flags once potential miscompile is investigated.
|
||||||
|
cflags += [
|
||||||
|
"-Xclang",
|
||||||
|
"-no-opaque-pointers",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
if (is_fuchsia) {
|
if (is_fuchsia) {
|
||||||
# TODO(https://bugs.chromium.org/p/fuchsia/issues/detail?id=77383)
|
# TODO(https://bugs.chromium.org/p/fuchsia/issues/detail?id=77383)
|
||||||
cflags += [ "-Wno-deprecated-copy" ]
|
cflags += [ "-Wno-deprecated-copy" ]
|
||||||
|
|
Loading…
Reference in a new issue