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

Side by Side Diff: build/common.gypi

Issue 14169006: roll clang 176256:179138 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cros main waterfall Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | tools/clang/scripts/update.sh » ('j') | tools/clang/scripts/update.sh » ('J')
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 2947 matching lines...) Expand 10 before | Expand all | Expand 10 after
2958 ['clang==1 and clang_load!=""', { 2958 ['clang==1 and clang_load!=""', {
2959 'cflags': [ 2959 'cflags': [
2960 '-Xclang', '-load', '-Xclang', '<(clang_load)', 2960 '-Xclang', '-load', '-Xclang', '<(clang_load)',
2961 ], 2961 ],
2962 }], 2962 }],
2963 ['clang==1 and clang_add_plugin!=""', { 2963 ['clang==1 and clang_add_plugin!=""', {
2964 'cflags': [ 2964 'cflags': [
2965 '-Xclang', '-add-plugin', '-Xclang', '<(clang_add_plugin)', 2965 '-Xclang', '-add-plugin', '-Xclang', '<(clang_add_plugin)',
2966 ], 2966 ],
2967 }], 2967 }],
2968 ['clang==1 and target_arch=="ia32"', {
2969 'cflags': [
2970 # Else building libyuv gives clang's register allocator issues,
2971 # see llvm.org/PR15798 / crbug.com/233709
2972 '-momit-leaf-frame-pointer',
2973 ],
2974 }],
2968 ['clang==1 and "<(GENERATOR)"=="ninja"', { 2975 ['clang==1 and "<(GENERATOR)"=="ninja"', {
2969 'cflags': [ 2976 'cflags': [
2970 # See http://crbug.com/110262 2977 # See http://crbug.com/110262
2971 '-fcolor-diagnostics', 2978 '-fcolor-diagnostics',
2972 ], 2979 ],
2973 }], 2980 }],
2974 # Common options for AddressSanitizer, ThreadSanitizer and 2981 # Common options for AddressSanitizer, ThreadSanitizer and
2975 # MemorySanitizer. 2982 # MemorySanitizer.
2976 ['asan==1 or tsan==1 or msan==1', { 2983 ['asan==1 or tsan==1 or msan==1', {
2977 'target_conditions': [ 2984 'target_conditions': [
2978 ['_toolset=="target"', { 2985 ['_toolset=="target"', {
2979 'cflags': [ 2986 'cflags': [
2980 '-fno-omit-frame-pointer', 2987 '-fno-omit-frame-pointer',
2981 '-gline-tables-only', 2988 '-gline-tables-only',
2982 ], 2989 ],
2990 'ldflags!': [
2991 # Functions interposed by the sanitizers can make ld think
2992 # that some libraries aren't needed when they actually are,
2993 # http://crbug.com/234010. As workaround, disable --as-needed.
2994 '-Wl,--as-needed',
2995 ],
2983 }], 2996 }],
2984 ], 2997 ],
2985 }], 2998 }],
2986 ['asan==1', { 2999 ['asan==1', {
2987 'target_conditions': [ 3000 'target_conditions': [
2988 ['_toolset=="target"', { 3001 ['_toolset=="target"', {
2989 'cflags': [ 3002 'cflags': [
2990 '-fsanitize=address', 3003 '-fsanitize=address',
2991 '-w', # http://crbug.com/162783 3004 '-w', # http://crbug.com/162783
2992 ], 3005 ],
(...skipping 1268 matching lines...) Expand 10 before | Expand all | Expand 10 after
4261 # settings in target dicts. SYMROOT is a special case, because many other 4274 # settings in target dicts. SYMROOT is a special case, because many other
4262 # Xcode variables depend on it, including variables such as 4275 # Xcode variables depend on it, including variables such as
4263 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 4276 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
4264 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 4277 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
4265 # files to appear (when present) in the UI as actual files and not red 4278 # files to appear (when present) in the UI as actual files and not red
4266 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 4279 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
4267 # and therefore SYMROOT, needs to be set at the project level. 4280 # and therefore SYMROOT, needs to be set at the project level.
4268 'SYMROOT': '<(DEPTH)/xcodebuild', 4281 'SYMROOT': '<(DEPTH)/xcodebuild',
4269 }, 4282 },
4270 } 4283 }
OLDNEW
« no previous file with comments | « no previous file | tools/clang/scripts/update.sh » ('j') | tools/clang/scripts/update.sh » ('J')

Powered by Google App Engine
This is Rietveld 408576698