Skip to content

Commit

Permalink
Update BUILD.gn
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex313031 authored Aug 3, 2022
1 parent 451bcdb commit 9e04ae3
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions build/config/compiler/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -1549,9 +1539,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",
]
Expand All @@ -1561,10 +1548,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" ]
}
}
}
}
Expand Down

0 comments on commit 9e04ae3

Please sign in to comment.