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

Side by Side Diff: build/common.gypi

Issue 7541045: Adding GYP_DEFINES=ASAN to enable ASAN build (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 9 years, 4 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 | 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) 2011 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2011 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 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 395
396 # These two variables can be set in GYP_DEFINES while running 396 # These two variables can be set in GYP_DEFINES while running
397 # |gclient runhooks| to let clang run a plugin in every compilation. 397 # |gclient runhooks| to let clang run a plugin in every compilation.
398 # Only has an effect if 'clang=1' is in GYP_DEFINES as well. 398 # Only has an effect if 'clang=1' is in GYP_DEFINES as well.
399 # Example: 399 # Example:
400 # GYP_DEFINES='clang=1 clang_load=/abs/path/to/libPrintFunctionNames.dyl ib clang_add_plugin=print-fns' gclient runhooks 400 # GYP_DEFINES='clang=1 clang_load=/abs/path/to/libPrintFunctionNames.dyl ib clang_add_plugin=print-fns' gclient runhooks
401 401
402 'clang_load%': '', 402 'clang_load%': '',
403 'clang_add_plugin%': '', 403 'clang_add_plugin%': '',
404 404
405 # Enable building with ASAN.
406 # See https://sites.google.com/a/chromium.org/dev/developers/testing/address sanitizer
407 'asan%': 0,
Nico 2011/08/05 18:37:19 Should setting this set 'clang' to 1 automatically
glotov 2011/08/10 18:10:30 Done.
408
405 # Enable sampling based profiler. 409 # Enable sampling based profiler.
406 # See http://google-perftools.googlecode.com/svn/trunk/doc/cpuprofile.html 410 # See http://google-perftools.googlecode.com/svn/trunk/doc/cpuprofile.html
407 'profiling%': '0', 411 'profiling%': '0',
408 412
409 # Override whether we should use Breakpad on Linux. I.e. for Chrome bot. 413 # Override whether we should use Breakpad on Linux. I.e. for Chrome bot.
410 'linux_breakpad%': 0, 414 'linux_breakpad%': 0,
411 # And if we want to dump symbols for Breakpad-enabled builds. 415 # And if we want to dump symbols for Breakpad-enabled builds.
412 'linux_dump_symbols%': 0, 416 'linux_dump_symbols%': 0,
413 # And if we want to strip the binary after dumping symbols. 417 # And if we want to strip the binary after dumping symbols.
414 'linux_strip_binary%': 0, 418 'linux_strip_binary%': 0,
(...skipping 1089 matching lines...) Expand 10 before | Expand all | Expand 10 after
1504 }], 1508 }],
1505 ['clang==1 and clang_load!="" and clang_add_plugin!=""', { 1509 ['clang==1 and clang_load!="" and clang_add_plugin!=""', {
1506 'target_conditions': [ 1510 'target_conditions': [
1507 ['_toolset=="target"', { 1511 ['_toolset=="target"', {
1508 'cflags': [ 1512 'cflags': [
1509 '-Xclang', '-load', '-Xclang', '<(clang_load)', 1513 '-Xclang', '-load', '-Xclang', '<(clang_load)',
1510 '-Xclang', '-add-plugin', '-Xclang', '<(clang_add_plugin)', 1514 '-Xclang', '-add-plugin', '-Xclang', '<(clang_add_plugin)',
1511 ], 1515 ],
1512 }]], 1516 }]],
1513 }], 1517 }],
1518 ['clang==1 and asan==1', {
1519 'target_conditions': [
Nico 2011/08/05 18:37:19 I think the 'target_conditions'/ '_toolset' part s
glotov 2011/08/10 18:10:30 Done.
1520 ['_toolset=="target"', {
1521 'cflags': [
1522 '-fasan',
1523 ],
1524 }]],
1525 }],
1514 ['no_strict_aliasing==1', { 1526 ['no_strict_aliasing==1', {
1515 'cflags': [ 1527 'cflags': [
1516 '-fno-strict-aliasing', 1528 '-fno-strict-aliasing',
1517 ], 1529 ],
1518 }], 1530 }],
1519 ['linux_breakpad==1', { 1531 ['linux_breakpad==1', {
1520 'cflags': [ '-g' ], 1532 'cflags': [ '-g' ],
1521 'defines': ['USE_LINUX_BREAKPAD'], 1533 'defines': ['USE_LINUX_BREAKPAD'],
1522 }], 1534 }],
1523 ['linux_use_heapchecker==1', { 1535 ['linux_use_heapchecker==1', {
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
1912 # settings in target dicts. SYMROOT is a special case, because many other 1924 # settings in target dicts. SYMROOT is a special case, because many other
1913 # Xcode variables depend on it, including variables such as 1925 # Xcode variables depend on it, including variables such as
1914 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 1926 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
1915 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 1927 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
1916 # files to appear (when present) in the UI as actual files and not red 1928 # files to appear (when present) in the UI as actual files and not red
1917 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 1929 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
1918 # and therefore SYMROOT, needs to be set at the project level. 1930 # and therefore SYMROOT, needs to be set at the project level.
1919 'SYMROOT': '<(DEPTH)/xcodebuild', 1931 'SYMROOT': '<(DEPTH)/xcodebuild',
1920 }, 1932 },
1921 } 1933 }
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