Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1011)

Side by Side Diff: build/config/compiler/BUILD.gn

Issue 1379503002: Add Undefined Behaviour sanitizer support to GN. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments. Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/config/BUILD.gn ('k') | build/config/compiler/compiler.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/android/config.gni") 5 import("//build/config/android/config.gni")
6 import("//build/config/chrome_build.gni") 6 import("//build/config/chrome_build.gni")
7 import("//build/config/compiler/compiler.gni") 7 import("//build/config/compiler/compiler.gni")
8 import("//build/toolchain/ccache.gni") 8 import("//build/toolchain/ccache.gni")
9 9
10 if (current_cpu == "arm") { 10 if (current_cpu == "arm") {
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 # saved ~20% of link time. 405 # saved ~20% of link time.
406 # https://groups.google.com/a/chromium.org/group/chromium-dev/browse_threa d/thread/281527606915bb36 406 # https://groups.google.com/a/chromium.org/group/chromium-dev/browse_threa d/thread/281527606915bb36
407 # Only apply this to the target linker, since the host 407 # Only apply this to the target linker, since the host
408 # linker might not be gold, but isn't used much anyway. 408 # linker might not be gold, but isn't used much anyway.
409 # TODO(raymes): Disable threading because gold is frequently 409 # TODO(raymes): Disable threading because gold is frequently
410 # crashing on the bots: crbug.com/161942. 410 # crashing on the bots: crbug.com/161942.
411 #"-Wl,--threads", 411 #"-Wl,--threads",
412 #"-Wl,--thread-count=4", 412 #"-Wl,--thread-count=4",
413 ] 413 ]
414 414
415 if (!is_asan && !is_msan && !is_lsan && !is_tsan) { 415 if (!using_sanitizer) {
416 # TODO(brettw) common.gypi has this only for target toolset. 416 # TODO(brettw) common.gypi has this only for target toolset.
417 ldflags += [ "-Wl,--icf=all" ] 417 ldflags += [ "-Wl,--icf=all" ]
418 } 418 }
419 419
420 # TODO(thestig): Make this flag work with GN. 420 # TODO(thestig): Make this flag work with GN.
421 #if (!is_official_build && !is_chromeos && !(is_asan || is_lsan || is_tsan | | is_msan)) { 421 #if (!is_official_build && !is_chromeos && !(is_asan || is_lsan || is_tsan | | is_msan)) {
422 # ldflags += [ 422 # ldflags += [
423 # "-Wl,--detect-odr-violations", 423 # "-Wl,--detect-odr-violations",
424 # ] 424 # ]
425 #} 425 #}
(...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after
1135 if (symbol_level == 0) { 1135 if (symbol_level == 0) {
1136 configs = [ ":no_symbols" ] 1136 configs = [ ":no_symbols" ]
1137 } else if (symbol_level == 1) { 1137 } else if (symbol_level == 1) {
1138 configs = [ ":minimal_symbols" ] 1138 configs = [ ":minimal_symbols" ]
1139 } else if (symbol_level == 2) { 1139 } else if (symbol_level == 2) {
1140 configs = [ ":symbols" ] 1140 configs = [ ":symbols" ]
1141 } else { 1141 } else {
1142 assert(false) 1142 assert(false)
1143 } 1143 }
1144 } 1144 }
OLDNEW
« no previous file with comments | « build/config/BUILD.gn ('k') | build/config/compiler/compiler.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698