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

Side by Side Diff: build/common.gypi

Issue 258433005: Remove {linux|android}_use_tcmalloc and switch to use_allocator in Chromium. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 7 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 | « base/base.gyp ('k') | build/gyp_chromium » ('j') | 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 793 matching lines...) Expand 10 before | Expand all | Expand 10 after
804 804
805 # Do not enable the Settings App on ChromeOS. 805 # Do not enable the Settings App on ChromeOS.
806 ['enable_app_list==1 and chromeos==0', { 806 ['enable_app_list==1 and chromeos==0', {
807 'enable_settings_app%': 1, 807 'enable_settings_app%': 1,
808 }, { 808 }, {
809 'enable_settings_app%': 0, 809 'enable_settings_app%': 0,
810 }], 810 }],
811 811
812 ['OS=="linux" and target_arch=="arm" and chromeos==0', { 812 ['OS=="linux" and target_arch=="arm" and chromeos==0', {
813 # Set some defaults for arm/linux chrome builds 813 # Set some defaults for arm/linux chrome builds
814 # TODO(dmikurube): Change the default of use_allocator to "none". 814 'use_allocator%': 'none',
815 # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554
816 'linux_use_tcmalloc%': 0,
817 'use_allocator%': 'see_use_tcmalloc',
818 # sysroot needs to be an absolute path otherwise it generates 815 # sysroot needs to be an absolute path otherwise it generates
819 # incorrect results when passed to pkg-config 816 # incorrect results when passed to pkg-config
820 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/arm-sysroot', 817 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/arm-sysroot',
821 }], # OS=="linux" and target_arch=="arm" and chromeos==0 818 }], # OS=="linux" and target_arch=="arm" and chromeos==0
822 819
823 ['OS=="linux" and branding=="Chrome" and buildtype=="Official" and chrom eos==0', { 820 ['OS=="linux" and branding=="Chrome" and buildtype=="Official" and chrom eos==0', {
824 'conditions': [ 821 'conditions': [
825 ['target_arch=="x64"', { 822 ['target_arch=="x64"', {
826 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/chrome/installer/linux/debi an_wheezy_amd64-sysroot', 823 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/chrome/installer/linux/debi an_wheezy_amd64-sysroot',
827 }], 824 }],
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
1204 'linux_strip_reliability_tests%': 0, 1201 'linux_strip_reliability_tests%': 0,
1205 # If we want stack unwind support for backtrace(). 1202 # If we want stack unwind support for backtrace().
1206 'debug_unwind_tables%': 1, 1203 'debug_unwind_tables%': 1,
1207 'release_unwind_tables%': 1, 1204 'release_unwind_tables%': 1,
1208 1205
1209 # Override where to find binutils 1206 # Override where to find binutils
1210 'binutils_version%': 0, 1207 'binutils_version%': 0,
1211 'binutils_dir%': '', 1208 'binutils_dir%': '',
1212 1209
1213 # Enable TCMalloc. 1210 # Enable TCMalloc.
1214 # TODO(dmikurube): Change Linux default of use_allocator to "tcmalloc". 1211 # Default of 'use_allocator' is set to 'none' if OS=='android' later.
1215 # TODO(dmikurube): Change Android default of use_allocator to "none". 1212 'use_allocator%': 'tcmalloc',
1216 # TODO(dmikurube): Kill {linux|android}_use_tcmalloc. http://crbug.com/34555 4
1217 # {linux|android}_use_tcmalloc are to be replaced with use_allocator.
1218 # They are now used only if use_allocator=="see_use_tcmalloc" (default).
1219 # TODO(dmikurube): Assert when {linux|android}_use_tcmalloc is explicitly sp ecified.
1220 'linux_use_tcmalloc%': 1,
1221 'android_use_tcmalloc%': 0,
1222 'use_allocator%': 'see_use_tcmalloc',
1223 1213
1224 # Set to 1 to link against libgnome-keyring instead of using dlopen(). 1214 # Set to 1 to link against libgnome-keyring instead of using dlopen().
1225 'linux_link_gnome_keyring%': 0, 1215 'linux_link_gnome_keyring%': 0,
1226 # Set to 1 to link against gsettings APIs instead of using dlopen(). 1216 # Set to 1 to link against gsettings APIs instead of using dlopen().
1227 'linux_link_gsettings%': 0, 1217 'linux_link_gsettings%': 0,
1228 1218
1229 # Default arch variant for MIPS. 1219 # Default arch variant for MIPS.
1230 'mips_arch_variant%': 'mips32r1', 1220 'mips_arch_variant%': 'mips32r1',
1231 1221
1232 # Enable use of OpenMAX DL FFT routines. 1222 # Enable use of OpenMAX DL FFT routines.
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
1442 }], 1432 }],
1443 ['OS=="win"', { 1433 ['OS=="win"', {
1444 'windows_driver_kit_path%': '$(WDK_DIR)', 1434 'windows_driver_kit_path%': '$(WDK_DIR)',
1445 }], 1435 }],
1446 ['os_posix==1 and OS!="mac" and OS!="ios"', { 1436 ['os_posix==1 and OS!="mac" and OS!="ios"', {
1447 'conditions': [ 1437 'conditions': [
1448 ['target_arch=="mipsel"', { 1438 ['target_arch=="mipsel"', {
1449 'werror%': '', 1439 'werror%': '',
1450 'disable_nacl%': 1, 1440 'disable_nacl%': 1,
1451 'nacl_untrusted_build%': 0, 1441 'nacl_untrusted_build%': 0,
1452 # TODO(dmikurube): Change the default of use_allocator to "none". 1442 'use_allocator%': 'none',
1453 # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554
1454 'linux_use_tcmalloc%': 0,
1455 'use_allocator%': 'see_use_tcmalloc',
1456 }], 1443 }],
1457 ['OS=="linux" and target_arch=="mipsel"', { 1444 ['OS=="linux" and target_arch=="mipsel"', {
1458 'sysroot%': '<(sysroot)', 1445 'sysroot%': '<(sysroot)',
1459 'CXX%': '<(CXX)', 1446 'CXX%': '<(CXX)',
1460 }], 1447 }],
1461 # All Chrome builds have breakpad symbols, but only process the 1448 # All Chrome builds have breakpad symbols, but only process the
1462 # symbols from official builds. 1449 # symbols from official builds.
1463 ['(branding=="Chrome" and buildtype=="Official")', { 1450 ['(branding=="Chrome" and buildtype=="Official")', {
1464 'linux_dump_symbols%': 1, 1451 'linux_dump_symbols%': 1,
1465 1452
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
1632 1619
1633 # Always uses openssl. 1620 # Always uses openssl.
1634 'use_openssl%': 1, 1621 'use_openssl%': 1,
1635 'use_openssl_certs%': 1, 1622 'use_openssl_certs%': 1,
1636 1623
1637 'proprietary_codecs%': '<(proprietary_codecs)', 1624 'proprietary_codecs%': '<(proprietary_codecs)',
1638 'safe_browsing%': 2, 1625 'safe_browsing%': 2,
1639 'input_speech%': 0, 1626 'input_speech%': 0,
1640 'java_bridge%': 1, 1627 'java_bridge%': 1,
1641 'build_ffmpegsumo%': 0, 1628 'build_ffmpegsumo%': 0,
1642 # TODO(dmikurube): Change the default of use_allocator to "none". 1629 'use_allocator%': 'none',
1643 # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554
1644 'linux_use_tcmalloc%': 0,
1645 'use_allocator%': 'see_use_tcmalloc',
1646 1630
1647 # Disable Native Client. 1631 # Disable Native Client.
1648 'disable_nacl%': 1, 1632 'disable_nacl%': 1,
1649 1633
1650 # Android does not support background apps. 1634 # Android does not support background apps.
1651 'enable_background%': 0, 1635 'enable_background%': 0,
1652 1636
1653 # Sessions are store separately in the Java side. 1637 # Sessions are store separately in the Java side.
1654 'enable_session_service%': 0, 1638 'enable_session_service%': 0,
1655 1639
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
2019 '-fno-builtin -fno-optimize-sibling-calls', 2003 '-fno-builtin -fno-optimize-sibling-calls',
2020 2004
2021 # MSVS flags for TSan on Pin and Windows. 2005 # MSVS flags for TSan on Pin and Windows.
2022 'win_debug_RuntimeChecks': '0', 2006 'win_debug_RuntimeChecks': '0',
2023 'win_debug_disable_iterator_debugging': '1', 2007 'win_debug_disable_iterator_debugging': '1',
2024 'win_debug_Optimization': '1', 2008 'win_debug_Optimization': '1',
2025 'win_debug_InlineFunctionExpansion': '0', 2009 'win_debug_InlineFunctionExpansion': '0',
2026 'win_release_InlineFunctionExpansion': '0', 2010 'win_release_InlineFunctionExpansion': '0',
2027 'win_release_OmitFramePointers': '0', 2011 'win_release_OmitFramePointers': '0',
2028 2012
2029 # TODO(dmikurube): Change the default of use_allocator to "tcmalloc". 2013 'use_allocator': 'tcmalloc',
2030 # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554
2031 'linux_use_tcmalloc%': 1,
2032 'use_allocator': 'see_use_tcmalloc',
2033 'release_valgrind_build': 1, 2014 'release_valgrind_build': 1,
2034 'werror': '', 2015 'werror': '',
2035 'component': 'static_library', 2016 'component': 'static_library',
2036 'use_system_zlib': 0, 2017 'use_system_zlib': 0,
2037 }], 2018 }],
2038 2019
2039 # Build tweaks for DrMemory. 2020 # Build tweaks for DrMemory.
2040 # TODO(rnk): Combine with tsan config to share the builder. 2021 # TODO(rnk): Combine with tsan config to share the builder.
2041 # http://crbug.com/108155 2022 # http://crbug.com/108155
2042 ['build_for_tool=="drmemory"', { 2023 ['build_for_tool=="drmemory"', {
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
2275 'V8_DEPRECATION_WARNINGS', 2256 'V8_DEPRECATION_WARNINGS',
2276 # Temporary suppression until Blink code can be removed. 2257 # Temporary suppression until Blink code can be removed.
2277 'BLINK_SCALE_FILTERS_AT_RECORD_TIME', 2258 'BLINK_SCALE_FILTERS_AT_RECORD_TIME',
2278 ], 2259 ],
2279 'conditions': [ 2260 'conditions': [
2280 ['(OS=="mac" or OS=="ios") and asan==1', { 2261 ['(OS=="mac" or OS=="ios") and asan==1', {
2281 'dependencies': [ 2262 'dependencies': [
2282 '<(DEPTH)/build/mac/asan.gyp:asan_dynamic_runtime', 2263 '<(DEPTH)/build/mac/asan.gyp:asan_dynamic_runtime',
2283 ], 2264 ],
2284 }], 2265 }],
2285 # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554 2266 ['OS=="linux" and use_allocator!="none" and clang_type_profiler==1', {
2286 ['OS=="linux" and ((use_allocator!="none" and use_allocator!="see_use_tcma lloc") or (use_allocator=="see_use_tcmalloc" and linux_use_tcmalloc==1)) and cla ng_type_profiler==1', {
2287 'cflags_cc!': ['-fno-rtti'], 2267 'cflags_cc!': ['-fno-rtti'],
2288 'cflags_cc+': [ 2268 'cflags_cc+': [
2289 '-frtti', 2269 '-frtti',
2290 '-gline-tables-only', 2270 '-gline-tables-only',
2291 '-fintercept-allocation-functions', 2271 '-fintercept-allocation-functions',
2292 ], 2272 ],
2293 'defines': ['TYPE_PROFILING'], 2273 'defines': ['TYPE_PROFILING'],
2294 'dependencies': [ 2274 'dependencies': [
2295 '<(DEPTH)/base/allocator/allocator.gyp:type_profiler', 2275 '<(DEPTH)/base/allocator/allocator.gyp:type_profiler',
2296 ], 2276 ],
(...skipping 1547 matching lines...) Expand 10 before | Expand all | Expand 10 after
3844 # Attempt to use less memory to prevent the linker from 3824 # Attempt to use less memory to prevent the linker from
3845 # running out of address space. Considering installing a 3825 # running out of address space. Considering installing a
3846 # 64-bit kernel and switching to a 64-bit linker. 3826 # 64-bit kernel and switching to a 64-bit linker.
3847 '-Wl,--no-keep-memory', 3827 '-Wl,--no-keep-memory',
3848 ], 3828 ],
3849 }], 3829 }],
3850 ], 3830 ],
3851 }], 3831 }],
3852 ], 3832 ],
3853 }], 3833 }],
3854 # TODO(dmikurube): Kill {linux|android}_use_tcmalloc. http://crbug.com /345554 3834 ['use_allocator!="tcmalloc"', {
3855 ['use_allocator!="tcmalloc" and (use_allocator!="see_use_tcmalloc" or ((OS=="linux" and linux_use_tcmalloc==0) or (OS=="android" and android_use_tcmal loc==0)))', {
3856 'defines': ['NO_TCMALLOC'], 3835 'defines': ['NO_TCMALLOC'],
3857 }], 3836 }],
3858 ['linux_use_gold_flags==1', { 3837 ['linux_use_gold_flags==1', {
3859 'target_conditions': [ 3838 'target_conditions': [
3860 ['_toolset=="target"', { 3839 ['_toolset=="target"', {
3861 'ldflags': [ 3840 'ldflags': [
3862 # Experimentation found that using four linking threads 3841 # Experimentation found that using four linking threads
3863 # saved ~20% of link time. 3842 # saved ~20% of link time.
3864 # https://groups.google.com/a/chromium.org/group/chromium-dev/ browse_thread/thread/281527606915bb36 3843 # https://groups.google.com/a/chromium.org/group/chromium-dev/ browse_thread/thread/281527606915bb36
3865 # Only apply this to the target linker, since the host 3844 # Only apply this to the target linker, since the host
(...skipping 1395 matching lines...) Expand 10 before | Expand all | Expand 10 after
5261 # settings in target dicts. SYMROOT is a special case, because many other 5240 # settings in target dicts. SYMROOT is a special case, because many other
5262 # Xcode variables depend on it, including variables such as 5241 # Xcode variables depend on it, including variables such as
5263 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 5242 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
5264 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 5243 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
5265 # files to appear (when present) in the UI as actual files and not red 5244 # files to appear (when present) in the UI as actual files and not red
5266 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 5245 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
5267 # and therefore SYMROOT, needs to be set at the project level. 5246 # and therefore SYMROOT, needs to be set at the project level.
5268 'SYMROOT': '<(DEPTH)/xcodebuild', 5247 'SYMROOT': '<(DEPTH)/xcodebuild',
5269 }, 5248 },
5270 } 5249 }
OLDNEW
« no previous file with comments | « base/base.gyp ('k') | build/gyp_chromium » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698