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

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: review comments fixed 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 173
174 # Safe browsing is compiled in by default. Set to 0 to disable. 174 # Safe browsing is compiled in by default. Set to 0 to disable.
175 'safe_browsing%': 1, 175 'safe_browsing%': 1,
176 176
177 # If this is set, the clang plugins used on the buildbot will be used. 177 # If this is set, the clang plugins used on the buildbot will be used.
178 # Run tools/clang/scripts/update.sh to make sure they are compiled. 178 # Run tools/clang/scripts/update.sh to make sure they are compiled.
179 # This causes 'clang_chrome_plugins_flags' to be set. 179 # This causes 'clang_chrome_plugins_flags' to be set.
180 # Has no effect if 'clang' is not set as well. 180 # Has no effect if 'clang' is not set as well.
181 'clang_use_chrome_plugins%': 0, 181 'clang_use_chrome_plugins%': 0,
182 182
183 # Enable building with ASAN.
184 # See https://sites.google.com/a/chromium.org/dev/developers/testing/addre sssanitizer
185 'asan%': 0,
186
183 # Set to 1 compile with -fPIC cflag on linux. This is a must for shared 187 # Set to 1 compile with -fPIC cflag on linux. This is a must for shared
184 # libraries on linux x86-64 and arm, plus ASLR. 188 # libraries on linux x86-64 and arm, plus ASLR.
185 'linux_fpic%': 1, 189 'linux_fpic%': 1,
186 190
187 # Enable navigator.registerProtocolHandler and supporting UI. 191 # Enable navigator.registerProtocolHandler and supporting UI.
188 'enable_register_protocol_handler%': 1, 192 'enable_register_protocol_handler%': 1,
189 193
190 # Enable Web Intents and supporting UI. 194 # Enable Web Intents and supporting UI.
191 'enable_web_intents%': 0, 195 'enable_web_intents%': 0,
192 196
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 'disable_sse2%': '<(disable_sse2)', 294 'disable_sse2%': '<(disable_sse2)',
291 'component%': '<(component)', 295 'component%': '<(component)',
292 'use_titlecase_in_grd_files%': '<(use_titlecase_in_grd_files)', 296 'use_titlecase_in_grd_files%': '<(use_titlecase_in_grd_files)',
293 'use_third_party_translations%': '<(use_third_party_translations)', 297 'use_third_party_translations%': '<(use_third_party_translations)',
294 'remoting%': '<(remoting)', 298 'remoting%': '<(remoting)',
295 'enable_webrtc%': '<(enable_webrtc)', 299 'enable_webrtc%': '<(enable_webrtc)',
296 'p2p_apis%': '<(p2p_apis)', 300 'p2p_apis%': '<(p2p_apis)',
297 'configuration_policy%': '<(configuration_policy)', 301 'configuration_policy%': '<(configuration_policy)',
298 'safe_browsing%': '<(safe_browsing)', 302 'safe_browsing%': '<(safe_browsing)',
299 'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)', 303 'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)',
304 'asan%': '<(asan)',
300 'enable_register_protocol_handler%': '<(enable_register_protocol_handler)', 305 'enable_register_protocol_handler%': '<(enable_register_protocol_handler)',
301 'enable_smooth_scrolling%': '<(enable_smooth_scrolling)', 306 'enable_smooth_scrolling%': '<(enable_smooth_scrolling)',
302 'use_wayland%': '<(use_wayland)', 307 'use_wayland%': '<(use_wayland)',
303 308
304 # The release channel that this build targets. This is used to restrict 309 # The release channel that this build targets. This is used to restrict
305 # channel-specific build options, like which installer packages to create. 310 # channel-specific build options, like which installer packages to create.
306 # The default is 'all', which does no channel-specific filtering. 311 # The default is 'all', which does no channel-specific filtering.
307 'channel%': 'all', 312 'channel%': 'all',
308 313
309 # Override chromium_mac_pch and set it to 0 to suppress the use of 314 # Override chromium_mac_pch and set it to 0 to suppress the use of
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
661 # Set use_ibus to 1 to enable ibus support. 666 # Set use_ibus to 1 to enable ibus support.
662 ['touchui==1 and chromeos==1', { 667 ['touchui==1 and chromeos==1', {
663 'use_ibus%': 1, 668 'use_ibus%': 1,
664 }, { 669 }, {
665 'use_ibus%': 0, 670 'use_ibus%': 0,
666 }], 671 }],
667 672
668 ['enable_register_protocol_handler==1', { 673 ['enable_register_protocol_handler==1', {
669 'grit_defines': ['-D', 'enable_register_protocol_handler'], 674 'grit_defines': ['-D', 'enable_register_protocol_handler'],
670 }], 675 }],
676
677 ['asan==1', {
678 'clang%': 1,
679 }],
671 ], 680 ],
672 }, 681 },
673 'target_defaults': { 682 'target_defaults': {
674 'variables': { 683 'variables': {
675 # The condition that operates on chromium_code is in a target_conditions 684 # The condition that operates on chromium_code is in a target_conditions
676 # section, and will not have access to the default fallback value of 685 # section, and will not have access to the default fallback value of
677 # chromium_code at the top of this file, or to the chromium_code 686 # chromium_code at the top of this file, or to the chromium_code
678 # variable placed at the root variables scope of .gyp files, because 687 # variable placed at the root variables scope of .gyp files, because
679 # those variables are not set at target scope. As a workaround, 688 # those variables are not set at target scope. As a workaround,
680 # if chromium_code is not set at target scope, define it in target scope 689 # if chromium_code is not set at target scope, define it in target scope
(...skipping 823 matching lines...) Expand 10 before | Expand all | Expand 10 after
1504 }], 1513 }],
1505 ['clang==1 and clang_load!="" and clang_add_plugin!=""', { 1514 ['clang==1 and clang_load!="" and clang_add_plugin!=""', {
1506 'target_conditions': [ 1515 'target_conditions': [
1507 ['_toolset=="target"', { 1516 ['_toolset=="target"', {
1508 'cflags': [ 1517 'cflags': [
1509 '-Xclang', '-load', '-Xclang', '<(clang_load)', 1518 '-Xclang', '-load', '-Xclang', '<(clang_load)',
1510 '-Xclang', '-add-plugin', '-Xclang', '<(clang_add_plugin)', 1519 '-Xclang', '-add-plugin', '-Xclang', '<(clang_add_plugin)',
1511 ], 1520 ],
1512 }]], 1521 }]],
1513 }], 1522 }],
1523 ['asan==1', {
1524 'cflags': [
Nico 2011/08/10 18:48:17 Is this required for ldflags as well? aarya was se
glotov 2011/08/12 20:13:05 Yes, ldflags were added. ldl flag is passed by ASA
1525 '-fasan',
Nico 2011/08/10 18:15:20 Add a comment above this line "-fasan only works w
glotov 2011/08/12 20:13:05 Done.
1526 ],
1527 }],
1514 ['no_strict_aliasing==1', { 1528 ['no_strict_aliasing==1', {
1515 'cflags': [ 1529 'cflags': [
1516 '-fno-strict-aliasing', 1530 '-fno-strict-aliasing',
1517 ], 1531 ],
1518 }], 1532 }],
1519 ['linux_breakpad==1', { 1533 ['linux_breakpad==1', {
1520 'cflags': [ '-g' ], 1534 'cflags': [ '-g' ],
1521 'defines': ['USE_LINUX_BREAKPAD'], 1535 'defines': ['USE_LINUX_BREAKPAD'],
1522 }], 1536 }],
1523 ['linux_use_heapchecker==1', { 1537 ['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 1926 # settings in target dicts. SYMROOT is a special case, because many other
1913 # Xcode variables depend on it, including variables such as 1927 # Xcode variables depend on it, including variables such as
1914 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 1928 # 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 1929 # 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 1930 # 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, 1931 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
1918 # and therefore SYMROOT, needs to be set at the project level. 1932 # and therefore SYMROOT, needs to be set at the project level.
1919 'SYMROOT': '<(DEPTH)/xcodebuild', 1933 'SYMROOT': '<(DEPTH)/xcodebuild',
1920 }, 1934 },
1921 } 1935 }
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