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

Side by Side Diff: build/common.gypi

Issue 117373002: Don't add -lrt when linking ASan/TSan/MSan binaries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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 3380 matching lines...) Expand 10 before | Expand all | Expand 10 after
3391 'target_conditions': [ 3391 'target_conditions': [
3392 ['_toolset=="target"', { 3392 ['_toolset=="target"', {
3393 'cflags': [ 3393 'cflags': [
3394 '-fno-omit-frame-pointer', 3394 '-fno-omit-frame-pointer',
3395 '-gline-tables-only', 3395 '-gline-tables-only',
3396 ], 3396 ],
3397 'ldflags!': [ 3397 'ldflags!': [
3398 # Functions interposed by the sanitizers can make ld think 3398 # Functions interposed by the sanitizers can make ld think
3399 # that some libraries aren't needed when they actually are, 3399 # that some libraries aren't needed when they actually are,
3400 # http://crbug.com/234010. As workaround, disable --as-needed. 3400 # http://crbug.com/234010. As workaround, disable --as-needed.
3401 '-Wl,--as-needed', 3401 '-Wl,--as-needed',
Nico 2014/06/17 20:48:09 Can this be removed now too? Should http://llvm.or
3402 ], 3402 ],
3403 'defines': [ 3403 'defines': [
3404 'MEMORY_TOOL_REPLACES_ALLOCATOR', 3404 'MEMORY_TOOL_REPLACES_ALLOCATOR',
3405 ], 3405 ],
3406 }], 3406 }],
3407 ['_toolset=="target" and OS=="linux"', {
3408 'ldflags': [
3409 # http://crbug.com/234010.
3410 '-lrt',
3411 ],
3412 }],
3413 ], 3407 ],
3414 }], 3408 }],
3415 ['asan==1', { 3409 ['asan==1', {
3416 'target_conditions': [ 3410 'target_conditions': [
3417 ['_toolset=="target"', { 3411 ['_toolset=="target"', {
3418 'cflags': [ 3412 'cflags': [
3419 '-fsanitize=address', 3413 '-fsanitize=address',
3420 '-w', # http://crbug.com/162783 3414 '-w', # http://crbug.com/162783
3421 ], 3415 ],
3422 'ldflags': [ 3416 'ldflags': [
(...skipping 1365 matching lines...) Expand 10 before | Expand all | Expand 10 after
4788 # settings in target dicts. SYMROOT is a special case, because many other 4782 # settings in target dicts. SYMROOT is a special case, because many other
4789 # Xcode variables depend on it, including variables such as 4783 # Xcode variables depend on it, including variables such as
4790 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 4784 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
4791 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 4785 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
4792 # files to appear (when present) in the UI as actual files and not red 4786 # files to appear (when present) in the UI as actual files and not red
4793 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 4787 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
4794 # and therefore SYMROOT, needs to be set at the project level. 4788 # and therefore SYMROOT, needs to be set at the project level.
4795 'SYMROOT': '<(DEPTH)/xcodebuild', 4789 'SYMROOT': '<(DEPTH)/xcodebuild',
4796 }, 4790 },
4797 } 4791 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698