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

Side by Side Diff: build/common.gypi

Issue 988633004: Linux: Enable ODR violation detection. (try 2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: taaaaabs! Created 5 years, 9 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 | « no previous file | build/config/compiler/BUILD.gn » ('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) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 # IMPORTANT: 5 # IMPORTANT:
6 # Please don't directly include this file if you are building via gyp_chromium, 6 # Please don't directly include this file if you are building via gyp_chromium,
7 # since gyp_chromium is automatically forcing its inclusion. 7 # since gyp_chromium is automatically forcing its inclusion.
8 { 8 {
9 # Variables expected to be overriden on the GYP command line (-D) or by 9 # Variables expected to be overriden on the GYP command line (-D) or by
10 # ~/.gyp/include.gypi. 10 # ~/.gyp/include.gypi.
(...skipping 4463 matching lines...) Expand 10 before | Expand all | Expand 10 after
4474 # Experimentation found that using four linking threads 4474 # Experimentation found that using four linking threads
4475 # saved ~20% of link time. 4475 # saved ~20% of link time.
4476 # https://groups.google.com/a/chromium.org/group/chromium-dev/ browse_thread/thread/281527606915bb36 4476 # https://groups.google.com/a/chromium.org/group/chromium-dev/ browse_thread/thread/281527606915bb36
4477 # Only apply this to the target linker, since the host 4477 # Only apply this to the target linker, since the host
4478 # linker might not be gold, but isn't used much anyway. 4478 # linker might not be gold, but isn't used much anyway.
4479 # TODO(raymes): Disable threading because gold is frequently 4479 # TODO(raymes): Disable threading because gold is frequently
4480 # crashing on the bots: crbug.com/161942. 4480 # crashing on the bots: crbug.com/161942.
4481 # '-Wl,--threads', 4481 # '-Wl,--threads',
4482 # '-Wl,--thread-count=4', 4482 # '-Wl,--thread-count=4',
4483 ], 4483 ],
4484 'conditions': [
4485 # TODO(thestig): Enable this for disabled cases.
4486 [ 'buildtype!="Official" and chromeos==0 and asan==0 and lsan= =0 and tsan==0 and msan==0 and ubsan==0 and ubsan_vptr==0', {
4487 'ldflags': [
4488 '-Wl,--detect-odr-violations',
4489 ],
4490 }],
4491 ],
4484 }], 4492 }],
4485 ], 4493 ],
4486 'conditions': [ 4494 'conditions': [
4487 ['release_valgrind_build==0 and order_profiling==0', { 4495 ['release_valgrind_build==0 and order_profiling==0', {
4488 'target_conditions': [ 4496 'target_conditions': [
4489 ['_toolset=="target"', { 4497 ['_toolset=="target"', {
4490 'ldflags': [ 4498 'ldflags': [
4491 '-Wl,--icf=<(gold_icf_level)', 4499 '-Wl,--icf=<(gold_icf_level)',
4492 ], 4500 ],
4493 }], 4501 }],
(...skipping 1516 matching lines...) Expand 10 before | Expand all | Expand 10 after
6010 # settings in target dicts. SYMROOT is a special case, because many other 6018 # settings in target dicts. SYMROOT is a special case, because many other
6011 # Xcode variables depend on it, including variables such as 6019 # Xcode variables depend on it, including variables such as
6012 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 6020 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
6013 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 6021 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
6014 # files to appear (when present) in the UI as actual files and not red 6022 # files to appear (when present) in the UI as actual files and not red
6015 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 6023 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
6016 # and therefore SYMROOT, needs to be set at the project level. 6024 # and therefore SYMROOT, needs to be set at the project level.
6017 'SYMROOT': '<(DEPTH)/xcodebuild', 6025 'SYMROOT': '<(DEPTH)/xcodebuild',
6018 }, 6026 },
6019 } 6027 }
OLDNEW
« no previous file with comments | « no previous file | build/config/compiler/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698