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

Side by Side Diff: trunk/src/build/common.gypi

Issue 225093013: Revert 262031 "When "linux_use_gold_binary" is set, we now use g..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 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 | 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) 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 1323 matching lines...) Expand 10 before | Expand all | Expand 10 after
1334 # Set to 1 to compile with MSE support for MPEG2 TS 1334 # Set to 1 to compile with MSE support for MPEG2 TS
1335 'enable_mpeg2ts_stream_parser%': 0, 1335 'enable_mpeg2ts_stream_parser%': 0,
1336 1336
1337 'conditions': [ 1337 'conditions': [
1338 # Enable the Syzygy optimization step for the official builds. 1338 # Enable the Syzygy optimization step for the official builds.
1339 ['OS=="win" and buildtype=="Official" and syzyasan!=1', { 1339 ['OS=="win" and buildtype=="Official" and syzyasan!=1', {
1340 'syzygy_optimize%': 1, 1340 'syzygy_optimize%': 1,
1341 }, { 1341 }, {
1342 'syzygy_optimize%': 0, 1342 'syzygy_optimize%': 0,
1343 }], 1343 }],
1344 # Get binutils version so we can enable debug fission if we can. 1344
1345 ['os_posix==1 and OS!="mac" and OS!="ios"', {
1346 'conditions': [
1347 # compiler_version doesn't work with clang
1348 # TODO(mithro): Land https://codereview.chromium.org/199793014/ so
1349 # compiler_version works with clang.
1350 # TODO(glider): set clang to 1 earlier for ASan and TSan builds so
1351 # that it takes effect here.
1352 ['clang==0 and asan==0 and lsan==0 and tsan==0 and msan==0', {
1353 'binutils_version%': '<!(python <(DEPTH)/build/compiler_version.py a ssembler)',
1354 }],
1355 # On Android we know the binutils version in the toolchain.
1356 ['OS=="android"', {
1357 'binutils_version%': 222,
1358 }],
1359 # Our version of binutils in third_party/binutils
1360 ['linux_use_gold_binary==1', {
1361 'binutils_version%': 224,
1362 'conditions': [
1363 ['host_arch=="x64"', {
1364 'binutils_dir%': 'third_party/binutils/Linux_x64/Release/bin',
1365 }],
1366 ['host_arch=="ia32"', {
1367 'binutils_dir%': 'third_party/binutils/Linux_ia32/Release/bin',
1368 }],
1369 ],
1370 }],
1371 ],
1372 }, {
1373 'binutils_version%': 0,
1374 }],
1375 # The version of GCC in use, set later in platforms that use GCC and have 1345 # The version of GCC in use, set later in platforms that use GCC and have
1376 # not explicitly chosen to build with clang. Currently, this means all 1346 # not explicitly chosen to build with clang. Currently, this means all
1377 # platforms except Windows, Mac and iOS. 1347 # platforms except Windows, Mac and iOS.
1378 # TODO(glider): set clang to 1 earlier for ASan and TSan builds so that 1348 # TODO(glider): set clang to 1 earlier for ASan and TSan builds so that
1379 # it takes effect here. 1349 # it takes effect here.
1380 ['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', { 1350 ['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', {
1381 'conditions': [ 1351 'conditions': [
1382 ['OS=="android"', { 1352 ['OS=="android"', {
1383 # We directly set the gcc_version since we know what we use. 1353 # We directly set the gcc_version since we know what we use.
1384 'conditions': [ 1354 'conditions': [
1385 ['target_arch=="x64" or target_arch=="arm64"', { 1355 ['target_arch=="x64" or target_arch=="arm64"', {
1386 'gcc_version%': 48, 1356 'gcc_version%': 48,
1387 }, { 1357 }, {
1388 'gcc_version%': 46, 1358 'gcc_version%': 46,
1389 }], 1359 }],
1390 ], 1360 ],
1361 'binutils_version%': 222,
1391 }, { 1362 }, {
1392 'gcc_version%': '<!(python <(DEPTH)/build/compiler_version.py)', 1363 'gcc_version%': '<!(python <(DEPTH)/build/compiler_version.py)',
1364 'binutils_version%': '<!(python <(DEPTH)/build/compiler_version.py a ssembler)',
1393 }], 1365 }],
1394 ], 1366 ],
1395 }, { 1367 }, {
1396 'gcc_version%': 0, 1368 'gcc_version%': 0,
1369 'binutils_version%': 0,
1397 }], 1370 }],
1398 ['OS=="win" and "<!(python <(DEPTH)/build/dir_exists.py <(windows_sdk_defa ult_path))"=="True"', { 1371 ['OS=="win" and "<!(python <(DEPTH)/build/dir_exists.py <(windows_sdk_defa ult_path))"=="True"', {
1399 'windows_sdk_path%': '<(windows_sdk_default_path)', 1372 'windows_sdk_path%': '<(windows_sdk_default_path)',
1400 }, { 1373 }, {
1401 'windows_sdk_path%': 'C:/Program Files (x86)/Windows Kits/8.0', 1374 'windows_sdk_path%': 'C:/Program Files (x86)/Windows Kits/8.0',
1402 }], 1375 }],
1403 ['OS=="win" and "<!(python <(DEPTH)/build/dir_exists.py <(directx_sdk_defa ult_path))"=="True"', { 1376 ['OS=="win" and "<!(python <(DEPTH)/build/dir_exists.py <(directx_sdk_defa ult_path))"=="True"', {
1404 'directx_sdk_path%': '<(directx_sdk_default_path)', 1377 'directx_sdk_path%': '<(directx_sdk_default_path)',
1405 }, { 1378 }, {
1406 'directx_sdk_path%': '$(DXSDK_DIR)', 1379 'directx_sdk_path%': '$(DXSDK_DIR)',
(...skipping 1779 matching lines...) Expand 10 before | Expand all | Expand 10 after
3186 '-Wl,--no-as-needed', 3159 '-Wl,--no-as-needed',
3187 ], 3160 ],
3188 }], 3161 }],
3189 ['debug_unwind_tables==1', { 3162 ['debug_unwind_tables==1', {
3190 'cflags': ['-funwind-tables'], 3163 'cflags': ['-funwind-tables'],
3191 }, { 3164 }, {
3192 'cflags': ['-fno-unwind-tables', '-fno-asynchronous-unwind-table s'], 3165 'cflags': ['-fno-unwind-tables', '-fno-asynchronous-unwind-table s'],
3193 }], 3166 }],
3194 # http://gcc.gnu.org/wiki/DebugFission 3167 # http://gcc.gnu.org/wiki/DebugFission
3195 # Requires gold and gcc >= 4.8 or clang. 3168 # Requires gold and gcc >= 4.8 or clang.
3196 ['linux_use_gold_flags==1 and (clang==1 or gcc_version>=48) and bi nutils_version>=223 and use_goma==0', { 3169 ['linux_use_gold_flags==1 and (clang==1 or gcc_version>=48) and bi nutils_version>=223', {
3197 'cflags': ['-gsplit-dwarf'], 3170 'cflags': ['-gsplit-dwarf'],
3198 'ldflags': ['-Wl,--gdb-index'], 3171 'ldflags': ['-Wl,--gdb-index'],
3199 }], 3172 }],
3200 ], 3173 ],
3201 }, 3174 },
3202 'Release_Base': { 3175 'Release_Base': {
3203 'variables': { 3176 'variables': {
3204 'release_optimize%': '2', 3177 'release_optimize%': '2',
3205 # Binaries become big and gold is unable to perform GC 3178 # Binaries become big and gold is unable to perform GC
3206 # and remove unused sections for some of test targets 3179 # and remove unused sections for some of test targets
(...skipping 652 matching lines...) Expand 10 before | Expand all | Expand 10 after
3859 # now. 3832 # now.
3860 #'-Wl,--icf=safe', 3833 #'-Wl,--icf=safe',
3861 '-Wl,--icf=none', 3834 '-Wl,--icf=none',
3862 ], 3835 ],
3863 }], 3836 }],
3864 ], 3837 ],
3865 }], 3838 }],
3866 ], 3839 ],
3867 }], 3840 }],
3868 ['linux_use_gold_binary==1', { 3841 ['linux_use_gold_binary==1', {
3869 # Put our binutils, which contains gold in the search path. We pass
3870 # the path to gold to the compiler. gyp leaves unspecified what the
3871 # cwd is when running the compiler, so the normal gyp path-munging
3872 # fails us. This hack gets the right path.
3873 'cflags': [
3874 '-B<!(cd <(DEPTH) && pwd -P)/<(binutils_dir)',
3875 ],
3876 'ldflags': [ 3842 'ldflags': [
3877 '-B<!(cd <(DEPTH) && pwd -P)/<(binutils_dir)', 3843 # Put our gold binary in the search path for the linker.
3844 # We pass the path to gold to the compiler. gyp leaves
3845 # unspecified what the cwd is when running the compiler,
3846 # so the normal gyp path-munging fails us. This hack
3847 # gets the right path.
3848 '-B<!(cd <(DEPTH) && pwd -P)/third_party/gold',
3878 ], 3849 ],
3879 }], 3850 }],
3880 ], 3851 ],
3881 }, 3852 },
3882 }], 3853 }],
3883 # FreeBSD-specific options; note that most FreeBSD options are set above, 3854 # FreeBSD-specific options; note that most FreeBSD options are set above,
3884 # with Linux. 3855 # with Linux.
3885 ['OS=="freebsd"', { 3856 ['OS=="freebsd"', {
3886 'target_defaults': { 3857 'target_defaults': {
3887 'ldflags': [ 3858 'ldflags': [
(...skipping 1340 matching lines...) Expand 10 before | Expand all | Expand 10 after
5228 # settings in target dicts. SYMROOT is a special case, because many other 5199 # settings in target dicts. SYMROOT is a special case, because many other
5229 # Xcode variables depend on it, including variables such as 5200 # Xcode variables depend on it, including variables such as
5230 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 5201 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
5231 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 5202 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
5232 # files to appear (when present) in the UI as actual files and not red 5203 # files to appear (when present) in the UI as actual files and not red
5233 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 5204 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
5234 # and therefore SYMROOT, needs to be set at the project level. 5205 # and therefore SYMROOT, needs to be set at the project level.
5235 'SYMROOT': '<(DEPTH)/xcodebuild', 5206 'SYMROOT': '<(DEPTH)/xcodebuild',
5236 }, 5207 },
5237 } 5208 }
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