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

Side by Side Diff: build/common.gypi

Issue 522020: clang support (Closed)
Patch Set: lgtm Created 10 years, 3 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
OLDNEW
1 # Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2010 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': { 9 'variables': {
10 # .gyp files or targets should set chromium_code to 1 if they build 10 # .gyp files or targets should set chromium_code to 1 if they build
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 'msvs_debug_link_incremental%': '2', 244 'msvs_debug_link_incremental%': '2',
245 245
246 # This is the location of the sandbox binary. Chrome looks for this before 246 # This is the location of the sandbox binary. Chrome looks for this before
247 # running the zygote process. If found, and SUID, it will be used to 247 # running the zygote process. If found, and SUID, it will be used to
248 # sandbox the zygote process and, thus, all renderer processes. 248 # sandbox the zygote process and, thus, all renderer processes.
249 'linux_sandbox_path%': '', 249 'linux_sandbox_path%': '',
250 250
251 # Set this to true to enable SELinux support. 251 # Set this to true to enable SELinux support.
252 'selinux%': 0, 252 'selinux%': 0,
253 253
254 # Set this to true when building with Clang.
255 # TODO: eventually clang should behave identically to gcc, and this
256 # won't be necessary.
257 'clang%': 0,
258
254 # Override whether we should use Breakpad on Linux. I.e. for Chrome bot. 259 # Override whether we should use Breakpad on Linux. I.e. for Chrome bot.
255 'linux_breakpad%': 0, 260 'linux_breakpad%': 0,
256 # And if we want to dump symbols for Breakpad-enabled builds. 261 # And if we want to dump symbols for Breakpad-enabled builds.
257 'linux_dump_symbols%': 0, 262 'linux_dump_symbols%': 0,
258 # And if we want to strip the binary after dumping symbols. 263 # And if we want to strip the binary after dumping symbols.
259 'linux_strip_binary%': 0, 264 'linux_strip_binary%': 0,
260 # Strip the test binaries needed for Linux reliability tests. 265 # Strip the test binaries needed for Linux reliability tests.
261 'linux_strip_reliability_tests%': 0, 266 'linux_strip_reliability_tests%': 0,
262 267
263 # Enable TCMalloc. 268 # Enable TCMalloc.
(...skipping 843 matching lines...) Expand 10 before | Expand all | Expand 10 after
1107 'target_conditions': [ 1112 'target_conditions': [
1108 ['_toolset=="target"', { 1113 ['_toolset=="target"', {
1109 'cflags': [ 1114 'cflags': [
1110 '--sysroot=<(sysroot)', 1115 '--sysroot=<(sysroot)',
1111 ], 1116 ],
1112 'ldflags': [ 1117 'ldflags': [
1113 '--sysroot=<(sysroot)', 1118 '--sysroot=<(sysroot)',
1114 ], 1119 ],
1115 }]] 1120 }]]
1116 }], 1121 }],
1122 ['clang==1', {
1123 'cflags': [
1124 # Don't warn about unused variables, due to a common pattern:
1125 # scoped_deleter unused_variable(&thing_to_delete);
1126 '-Wno-unused-variable',
1127 # Clang spots more unused functions.
1128 '-Wno-unused-function',
1129 # gtest confuses clang.
1130 '-Wno-bool-conversions',
1131 # Don't die on dtoa code that uses a char as an array index.
1132 '-Wno-char-subscripts',
1133 ],
1134 'cflags!': [
1135 # Clang doesn't seem to know know this flag.
1136 '-mfpmath=sse',
1137 ],
1138 }],
1117 ['no_strict_aliasing==1', { 1139 ['no_strict_aliasing==1', {
1118 'cflags': [ 1140 'cflags': [
1119 '-fno-strict-aliasing', 1141 '-fno-strict-aliasing',
1120 ], 1142 ],
1121 }], 1143 }],
1122 ['linux_breakpad==1', { 1144 ['linux_breakpad==1', {
1123 'cflags': [ '-g' ], 1145 'cflags': [ '-g' ],
1124 'defines': ['USE_LINUX_BREAKPAD'], 1146 'defines': ['USE_LINUX_BREAKPAD'],
1125 }], 1147 }],
1126 ['linux_use_seccomp_sandbox==1 and buildtype!="Official"', { 1148 ['linux_use_seccomp_sandbox==1 and buildtype!="Official"', {
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
1456 # and therefore SYMROOT, needs to be set at the project level. 1478 # and therefore SYMROOT, needs to be set at the project level.
1457 'SYMROOT': '<(DEPTH)/xcodebuild', 1479 'SYMROOT': '<(DEPTH)/xcodebuild',
1458 }, 1480 },
1459 } 1481 }
1460 1482
1461 # Local Variables: 1483 # Local Variables:
1462 # tab-width:2 1484 # tab-width:2
1463 # indent-tabs-mode:nil 1485 # indent-tabs-mode:nil
1464 # End: 1486 # End:
1465 # vim: set expandtab tabstop=2 shiftwidth=2: 1487 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698