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

Side by Side Diff: build/common.gypi

Issue 197013010: Enable debug fission for Chrome debug builds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Just modify compiler_version instead of seperate tool. Created 6 years, 9 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
« no previous file with comments | « no previous file | build/compiler_version.py » ('j') | build/compiler_version.py » ('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 1281 matching lines...) Expand 10 before | Expand all | Expand 10 after
1292 # The version of GCC in use, set later in platforms that use GCC and have 1292 # The version of GCC in use, set later in platforms that use GCC and have
1293 # not explicitly chosen to build with clang. Currently, this means all 1293 # not explicitly chosen to build with clang. Currently, this means all
1294 # platforms except Windows, Mac and iOS. 1294 # platforms except Windows, Mac and iOS.
1295 # TODO(glider): set clang to 1 earlier for ASan and TSan builds so that 1295 # TODO(glider): set clang to 1 earlier for ASan and TSan builds so that
1296 # it takes effect here. 1296 # it takes effect here.
1297 ['os_posix==1 and OS!="mac" and OS!="ios" and clang==0 and asan==0 and lsa n==0 and tsan==0 and msan==0', { 1297 ['os_posix==1 and OS!="mac" and OS!="ios" and clang==0 and asan==0 and lsa n==0 and tsan==0 and msan==0', {
1298 'conditions': [ 1298 'conditions': [
1299 ['OS=="android"', { 1299 ['OS=="android"', {
1300 # We directly set the gcc_version since we know what we use. 1300 # We directly set the gcc_version since we know what we use.
1301 'gcc_version%': 46, 1301 'gcc_version%': 46,
1302 'binutils_version%': 222,
1302 }, { 1303 }, {
1303 'gcc_version%': '<!(python <(DEPTH)/build/compiler_version.py)', 1304 'gcc_version%': '<!(python <(DEPTH)/build/compiler_version.py)',
1305 'binutils_version%': '<!(python <(DEPTH)/build/compiler_version.py a ssembler)',
1304 }], 1306 }],
1305 ], 1307 ],
1306 }, { 1308 }, {
1307 'gcc_version%': 0, 1309 'gcc_version%': 0,
1310 'binutils_version%': 0,
1308 }], 1311 }],
1309 ['OS=="win" and "<!(python <(DEPTH)/build/dir_exists.py <(windows_sdk_defa ult_path))"=="True"', { 1312 ['OS=="win" and "<!(python <(DEPTH)/build/dir_exists.py <(windows_sdk_defa ult_path))"=="True"', {
1310 'windows_sdk_path%': '<(windows_sdk_default_path)', 1313 'windows_sdk_path%': '<(windows_sdk_default_path)',
1311 }, { 1314 }, {
1312 'windows_sdk_path%': 'C:/Program Files (x86)/Windows Kits/8.0', 1315 'windows_sdk_path%': 'C:/Program Files (x86)/Windows Kits/8.0',
1313 }], 1316 }],
1314 ['OS=="win" and "<!(python <(DEPTH)/build/dir_exists.py <(directx_sdk_defa ult_path))"=="True"', { 1317 ['OS=="win" and "<!(python <(DEPTH)/build/dir_exists.py <(directx_sdk_defa ult_path))"=="True"', {
1315 'directx_sdk_path%': '<(directx_sdk_default_path)', 1318 'directx_sdk_path%': '<(directx_sdk_default_path)',
1316 }, { 1319 }, {
1317 'directx_sdk_path%': '$(DXSDK_DIR)', 1320 'directx_sdk_path%': '$(DXSDK_DIR)',
(...skipping 1758 matching lines...) Expand 10 before | Expand all | Expand 10 after
3076 ['OS=="linux" and target_arch=="ia32"', { 3079 ['OS=="linux" and target_arch=="ia32"', {
3077 'ldflags': [ 3080 'ldflags': [
3078 '-Wl,--no-as-needed', 3081 '-Wl,--no-as-needed',
3079 ], 3082 ],
3080 }], 3083 }],
3081 ['debug_unwind_tables==1', { 3084 ['debug_unwind_tables==1', {
3082 'cflags': ['-funwind-tables'], 3085 'cflags': ['-funwind-tables'],
3083 }, { 3086 }, {
3084 'cflags': ['-fno-unwind-tables', '-fno-asynchronous-unwind-table s'], 3087 'cflags': ['-fno-unwind-tables', '-fno-asynchronous-unwind-table s'],
3085 }], 3088 }],
3089 # http://gcc.gnu.org/wiki/DebugFission
3090 # Requires gold and gcc >= 4.7 or clang.
3091 ['linux_use_gold_flags==1 and (clang==1 or gcc_version>=47) and bi nutils_version>=223', {
3092 'cflags': ['-gsplit-dwarf'],
3093 'ldflags': ['-Wl,--gdb-index'],
Nico 2014/03/17 09:07:38 Is there some way we can get this to pick up all t
mithro-old 2014/03/17 10:36:21 See https://codereview.chromium.org/196573022/ whi
3094 }],
3086 ], 3095 ],
3087 }, 3096 },
3088 'Release_Base': { 3097 'Release_Base': {
3089 'variables': { 3098 'variables': {
3090 'release_optimize%': '2', 3099 'release_optimize%': '2',
3091 # Binaries become big and gold is unable to perform GC 3100 # Binaries become big and gold is unable to perform GC
3092 # and remove unused sections for some of test targets 3101 # and remove unused sections for some of test targets
3093 # on 32 bit platform. 3102 # on 32 bit platform.
3094 # (This is currently observed only in chromeos valgrind bots) 3103 # (This is currently observed only in chromeos valgrind bots)
3095 # The following flag is to disable --gc-sections linker 3104 # The following flag is to disable --gc-sections linker
(...skipping 1948 matching lines...) Expand 10 before | Expand all | Expand 10 after
5044 # settings in target dicts. SYMROOT is a special case, because many other 5053 # settings in target dicts. SYMROOT is a special case, because many other
5045 # Xcode variables depend on it, including variables such as 5054 # Xcode variables depend on it, including variables such as
5046 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 5055 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
5047 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 5056 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
5048 # files to appear (when present) in the UI as actual files and not red 5057 # files to appear (when present) in the UI as actual files and not red
5049 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 5058 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
5050 # and therefore SYMROOT, needs to be set at the project level. 5059 # and therefore SYMROOT, needs to be set at the project level.
5051 'SYMROOT': '<(DEPTH)/xcodebuild', 5060 'SYMROOT': '<(DEPTH)/xcodebuild',
5052 }, 5061 },
5053 } 5062 }
OLDNEW
« no previous file with comments | « no previous file | build/compiler_version.py » ('j') | build/compiler_version.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698