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

Side by Side Diff: build/common.gypi

Issue 226613005: add a linux_use_debug_fission gyp variable for -gsplit-dwarf (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add some comments 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 735 matching lines...) Expand 10 before | Expand all | Expand 10 after
746 746
747 # linux_use_gold_flags: whether to use build flags that rely on gold. 747 # linux_use_gold_flags: whether to use build flags that rely on gold.
748 # On by default for x64 Linux. Temporarily off for ChromeOS as 748 # On by default for x64 Linux. Temporarily off for ChromeOS as
749 # it failed on a buildbot. 749 # it failed on a buildbot.
750 ['OS=="linux" and target_arch=="x64" and chromeos==0', { 750 ['OS=="linux" and target_arch=="x64" and chromeos==0', {
751 'linux_use_gold_flags%': 1, 751 'linux_use_gold_flags%': 1,
752 }, { 752 }, {
753 'linux_use_gold_flags%': 0, 753 'linux_use_gold_flags%': 0,
754 }], 754 }],
755 755
756 # linux_use_debug_fission: whether to use split DWARF debug info
757 # files. This can reduce link time significantly, but is incompatible
758 # with some utilities such as icecc and ccache. Requires gold and
759 # gcc >= 4.8 or clang.
760 # http://gcc.gnu.org/wiki/DebugFission
761 ['OS=="linux" and target_arch=="x64" and chromeos==0', {
Mostyn Bramley-Moore 2014/04/25 21:28:14 I'm not sure if this must be disabled for chromeos
dshwang 2014/04/26 15:21:19 IMO chromeos is not needed. Above chromeos buildbo
Mostyn Bramley-Moore 2014/04/27 17:59:48 OK- removed it.
762 'linux_use_debug_fission%': 1,
763 }, {
764 'linux_use_debug_fission%': 0,
765 }],
766
756 ['OS=="android" or OS=="ios"', { 767 ['OS=="android" or OS=="ios"', {
757 'enable_captive_portal_detection%': 0, 768 'enable_captive_portal_detection%': 0,
758 }, { 769 }, {
759 'enable_captive_portal_detection%': 1, 770 'enable_captive_portal_detection%': 1,
760 }], 771 }],
761 772
762 # Enable Skia UI text drawing incrementally on different platforms. 773 # Enable Skia UI text drawing incrementally on different platforms.
763 # http://crbug.com/105550 774 # http://crbug.com/105550
764 # 775 #
765 # On Aura, this allows per-tile painting to be used in the browser 776 # On Aura, this allows per-tile painting to be used in the browser
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
994 'enable_extensions%': '<(enable_extensions)', 1005 'enable_extensions%': '<(enable_extensions)',
995 'enable_plugin_installation%': '<(enable_plugin_installation)', 1006 'enable_plugin_installation%': '<(enable_plugin_installation)',
996 'enable_plugins%': '<(enable_plugins)', 1007 'enable_plugins%': '<(enable_plugins)',
997 'enable_session_service%': '<(enable_session_service)', 1008 'enable_session_service%': '<(enable_session_service)',
998 'enable_themes%': '<(enable_themes)', 1009 'enable_themes%': '<(enable_themes)',
999 'enable_autofill_dialog%': '<(enable_autofill_dialog)', 1010 'enable_autofill_dialog%': '<(enable_autofill_dialog)',
1000 'enable_background%': '<(enable_background)', 1011 'enable_background%': '<(enable_background)',
1001 'linux_use_bundled_gold%': '<(linux_use_bundled_gold)', 1012 'linux_use_bundled_gold%': '<(linux_use_bundled_gold)',
1002 'linux_use_bundled_binutils%': '<(linux_use_bundled_binutils)', 1013 'linux_use_bundled_binutils%': '<(linux_use_bundled_binutils)',
1003 'linux_use_gold_flags%': '<(linux_use_gold_flags)', 1014 'linux_use_gold_flags%': '<(linux_use_gold_flags)',
1015 'linux_use_debug_fission%': '<(linux_use_debug_fission)',
1004 'use_canvas_skia%': '<(use_canvas_skia)', 1016 'use_canvas_skia%': '<(use_canvas_skia)',
1005 'test_isolation_mode%': '<(test_isolation_mode)', 1017 'test_isolation_mode%': '<(test_isolation_mode)',
1006 'test_isolation_outdir%': '<(test_isolation_outdir)', 1018 'test_isolation_outdir%': '<(test_isolation_outdir)',
1007 'test_isolation_fail_on_missing': '<(test_isolation_fail_on_missing)', 1019 'test_isolation_fail_on_missing': '<(test_isolation_fail_on_missing)',
1008 'enable_printing%': '<(enable_printing)', 1020 'enable_printing%': '<(enable_printing)',
1009 'enable_spellcheck%': '<(enable_spellcheck)', 1021 'enable_spellcheck%': '<(enable_spellcheck)',
1010 'enable_google_now%': '<(enable_google_now)', 1022 'enable_google_now%': '<(enable_google_now)',
1011 'cld_version%': '<(cld_version)', 1023 'cld_version%': '<(cld_version)',
1012 'cld2_table_size%': '<(cld2_table_size)', 1024 'cld2_table_size%': '<(cld2_table_size)',
1013 'cld2_dynamic%': '<(cld2_dynamic)', 1025 'cld2_dynamic%': '<(cld2_dynamic)',
(...skipping 2174 matching lines...) Expand 10 before | Expand all | Expand 10 after
3188 ['OS=="linux" and target_arch=="ia32"', { 3200 ['OS=="linux" and target_arch=="ia32"', {
3189 'ldflags': [ 3201 'ldflags': [
3190 '-Wl,--no-as-needed', 3202 '-Wl,--no-as-needed',
3191 ], 3203 ],
3192 }], 3204 }],
3193 ['debug_unwind_tables==1', { 3205 ['debug_unwind_tables==1', {
3194 'cflags': ['-funwind-tables'], 3206 'cflags': ['-funwind-tables'],
3195 }, { 3207 }, {
3196 'cflags': ['-fno-unwind-tables', '-fno-asynchronous-unwind-table s'], 3208 'cflags': ['-fno-unwind-tables', '-fno-asynchronous-unwind-table s'],
3197 }], 3209 }],
3198 # http://gcc.gnu.org/wiki/DebugFission 3210 # TODO(mostynb): shuffle clang/gcc_version/binutils_version
3199 # Requires gold and gcc >= 4.8 or clang. 3211 # definitions in to the right scope to use them when setting
3200 ['linux_use_gold_flags==1 and (clang==1 or gcc_version>=48) and bi nutils_version>=223', { 3212 # linux_use_debug_fission, so it can be used here alone.
3213 ['linux_use_debug_fission==1 and (clang==1 or gcc_version>=48) and binutils_version>=223', {
3201 'cflags': ['-gsplit-dwarf'], 3214 'cflags': ['-gsplit-dwarf'],
3202 'ldflags': ['-Wl,--gdb-index'], 3215 'ldflags': ['-Wl,--gdb-index'],
3203 }], 3216 }],
3204 ], 3217 ],
3205 }, 3218 },
3206 'Release_Base': { 3219 'Release_Base': {
3207 'variables': { 3220 'variables': {
3208 'release_optimize%': '2', 3221 'release_optimize%': '2',
3209 # Binaries become big and gold is unable to perform GC 3222 # Binaries become big and gold is unable to perform GC
3210 # and remove unused sections for some of test targets 3223 # and remove unused sections for some of test targets
(...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after
3882 # the path to gold to the compiler. gyp leaves unspecified what the 3895 # the path to gold to the compiler. gyp leaves unspecified what the
3883 # cwd is when running the compiler, so the normal gyp path-munging 3896 # cwd is when running the compiler, so the normal gyp path-munging
3884 # fails us. This hack gets the right path. 3897 # fails us. This hack gets the right path.
3885 'ldflags': [ 3898 'ldflags': [
3886 '-B<!(cd <(DEPTH) && pwd -P)/<(binutils_dir)', 3899 '-B<!(cd <(DEPTH) && pwd -P)/<(binutils_dir)',
3887 ], 3900 ],
3888 }], 3901 }],
3889 # Some binutils 2.23 releases may or may not have new dtags enabled, 3902 # Some binutils 2.23 releases may or may not have new dtags enabled,
3890 # but they are all compatible with --disable-new-dtags, 3903 # but they are all compatible with --disable-new-dtags,
3891 # because the new dynamic tags are not created by default. 3904 # because the new dynamic tags are not created by default.
3892 ['binutils_version>=223', { 3905 ['binutils_version>=223', {
dshwang 2014/04/26 15:21:19 This CL is needed because of this line. We can not
Mostyn Bramley-Moore 2014/04/27 17:59:48 I'm not sure if it's worth leaving a comment here,
3893 # Newer binutils don't set DT_RPATH unless you disable "new" dtags 3906 # Newer binutils don't set DT_RPATH unless you disable "new" dtags
3894 # and the new DT_RUNPATH doesn't work without --no-as-needed flag. 3907 # and the new DT_RUNPATH doesn't work without --no-as-needed flag.
3895 # FIXME(mithro): Figure out the --as-needed/--no-as-needed flags 3908 # FIXME(mithro): Figure out the --as-needed/--no-as-needed flags
3896 # inside this file to allow usage of --no-as-needed and removal of 3909 # inside this file to allow usage of --no-as-needed and removal of
3897 # this flag. 3910 # this flag.
3898 'ldflags': [ 3911 'ldflags': [
3899 '-Wl,--disable-new-dtags', 3912 '-Wl,--disable-new-dtags',
3900 ], 3913 ],
3901 }] 3914 }]
3902 ], 3915 ],
(...skipping 1313 matching lines...) Expand 10 before | Expand all | Expand 10 after
5216 # settings in target dicts. SYMROOT is a special case, because many other 5229 # settings in target dicts. SYMROOT is a special case, because many other
5217 # Xcode variables depend on it, including variables such as 5230 # Xcode variables depend on it, including variables such as
5218 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 5231 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
5219 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 5232 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
5220 # files to appear (when present) in the UI as actual files and not red 5233 # files to appear (when present) in the UI as actual files and not red
5221 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 5234 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
5222 # and therefore SYMROOT, needs to be set at the project level. 5235 # and therefore SYMROOT, needs to be set at the project level.
5223 'SYMROOT': '<(DEPTH)/xcodebuild', 5236 'SYMROOT': '<(DEPTH)/xcodebuild',
5224 }, 5237 },
5225 } 5238 }
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