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

Side by Side Diff: build/common.gypi

Issue 11280181: An option and a tentative fix for 32-bit Clang build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed the comments. Created 7 years, 11 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 827 matching lines...) Expand 10 before | Expand all | Expand 10 after
838 # This is the location of the sandbox binary. Chrome looks for this before 838 # This is the location of the sandbox binary. Chrome looks for this before
839 # running the zygote process. If found, and SUID, it will be used to 839 # running the zygote process. If found, and SUID, it will be used to
840 # sandbox the zygote process and, thus, all renderer processes. 840 # sandbox the zygote process and, thus, all renderer processes.
841 'linux_sandbox_path%': '', 841 'linux_sandbox_path%': '',
842 842
843 # Set this to true to enable SELinux support. 843 # Set this to true to enable SELinux support.
844 'selinux%': 0, 844 'selinux%': 0,
845 845
846 # Clang stuff. 846 # Clang stuff.
847 'clang%': '<(clang)', 847 'clang%': '<(clang)',
848 'make_clang_dir%': 'third_party/llvm-build/Release+Asserts', 848 'make_clang_dir%': 'third_party/llvm-build/Release+Asserts',
Dai Mikurube (NOT FULLTIME) 2013/01/18 07:40:41 Finally when the type profiler is upstreamed (I'm
849 849
850 # These two variables can be set in GYP_DEFINES while running 850 # These two variables can be set in GYP_DEFINES while running
851 # |gclient runhooks| to let clang run a plugin in every compilation. 851 # |gclient runhooks| to let clang run a plugin in every compilation.
852 # Only has an effect if 'clang=1' is in GYP_DEFINES as well. 852 # Only has an effect if 'clang=1' is in GYP_DEFINES as well.
853 # Example: 853 # Example:
854 # GYP_DEFINES='clang=1 clang_load=/abs/path/to/libPrintFunctionNames.dyl ib clang_add_plugin=print-fns' gclient runhooks 854 # GYP_DEFINES='clang=1 clang_load=/abs/path/to/libPrintFunctionNames.dyl ib clang_add_plugin=print-fns' gclient runhooks
855 855
856 'clang_load%': '', 856 'clang_load%': '',
857 'clang_add_plugin%': '', 857 'clang_add_plugin%': '',
858 858
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after
1430 # See http://crbug.com/145503. 1430 # See http://crbug.com/145503.
1431 'component': "static_library", 1431 'component': "static_library",
1432 }], 1432 }],
1433 ['tsan==1', { 1433 ['tsan==1', {
1434 'clang%': 1, 1434 'clang%': 1,
1435 }], 1435 }],
1436 1436
1437 ['OS=="linux" and clang_type_profiler==1', { 1437 ['OS=="linux" and clang_type_profiler==1', {
1438 'clang%': 1, 1438 'clang%': 1,
1439 'clang_use_chrome_plugins%': 0, 1439 'clang_use_chrome_plugins%': 0,
1440 'make_clang_dir%': 'third_party/llvm-allocated-type/Linux_x64', 1440 'conditions': [
1441 ['host_arch=="x64"', {
1442 'make_clang_dir%': 'third_party/llvm-allocated-type/Linux_x64',
1443 }],
1444 ['host_arch=="ia32"', {
1445 # 32-bit Clang is unsupported. It may not build. Put your 32-bit
1446 # Clang in this directory at your own risk if needed for some
1447 # purpose (e.g. to compare 32-bit and 64-bit behavior like memory
1448 # usage). Any failure by this compiler should not close the tree.
1449 'make_clang_dir%': 'third_party/llvm-allocated-type/Linux_ia32',
1450 }],
1451 ],
1441 }], 1452 }],
1442 1453
1443 # On valgrind bots, override the optimizer settings so we don't inline too 1454 # On valgrind bots, override the optimizer settings so we don't inline too
1444 # much and make the stacks harder to figure out. 1455 # much and make the stacks harder to figure out.
1445 # 1456 #
1446 # TODO(rnk): Kill off variables that no one else uses and just implement 1457 # TODO(rnk): Kill off variables that no one else uses and just implement
1447 # them under a build_for_tool== condition. 1458 # them under a build_for_tool== condition.
1448 ['build_for_tool=="memcheck" or build_for_tool=="tsan"', { 1459 ['build_for_tool=="memcheck" or build_for_tool=="tsan"', {
1449 # gcc flags 1460 # gcc flags
1450 'mac_debug_optimization': '1', 1461 'mac_debug_optimization': '1',
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
1616 'cflags_cc+': [ 1627 'cflags_cc+': [
1617 '-frtti', 1628 '-frtti',
1618 '-gline-tables-only', 1629 '-gline-tables-only',
1619 '-fintercept-allocation-functions', 1630 '-fintercept-allocation-functions',
1620 ], 1631 ],
1621 'defines': ['TYPE_PROFILING'], 1632 'defines': ['TYPE_PROFILING'],
1622 'dependencies': [ 1633 'dependencies': [
1623 '<(DEPTH)/base/allocator/allocator.gyp:type_profiler', 1634 '<(DEPTH)/base/allocator/allocator.gyp:type_profiler',
1624 ], 1635 ],
1625 }], 1636 }],
1637 ['OS=="linux" and clang==1 and host_arch=="ia32"', {
1638 # TODO(dmikurube): Remove -Wno-sentinel when Clang/LLVM is fixed.
1639 # See http://crbug.com/162818.
1640 'cflags+': ['-Wno-sentinel'],
1641 }],
1626 ['OS=="win" and "<(msbuild_toolset)"!=""', { 1642 ['OS=="win" and "<(msbuild_toolset)"!=""', {
1627 'msbuild_toolset': '<(msbuild_toolset)', 1643 'msbuild_toolset': '<(msbuild_toolset)',
1628 }], 1644 }],
1629 ['branding=="Chrome"', { 1645 ['branding=="Chrome"', {
1630 'defines': ['GOOGLE_CHROME_BUILD'], 1646 'defines': ['GOOGLE_CHROME_BUILD'],
1631 }, { # else: branding!="Chrome" 1647 }, { # else: branding!="Chrome"
1632 'defines': ['CHROMIUM_BUILD'], 1648 'defines': ['CHROMIUM_BUILD'],
1633 }], 1649 }],
1634 ['OS=="mac" and component=="shared_library"', { 1650 ['OS=="mac" and component=="shared_library"', {
1635 'xcode_settings': { 1651 'xcode_settings': {
(...skipping 2348 matching lines...) Expand 10 before | Expand all | Expand 10 after
3984 # settings in target dicts. SYMROOT is a special case, because many other 4000 # settings in target dicts. SYMROOT is a special case, because many other
3985 # Xcode variables depend on it, including variables such as 4001 # Xcode variables depend on it, including variables such as
3986 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 4002 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
3987 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 4003 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
3988 # files to appear (when present) in the UI as actual files and not red 4004 # files to appear (when present) in the UI as actual files and not red
3989 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 4005 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
3990 # and therefore SYMROOT, needs to be set at the project level. 4006 # and therefore SYMROOT, needs to be set at the project level.
3991 'SYMROOT': '<(DEPTH)/xcodebuild', 4007 'SYMROOT': '<(DEPTH)/xcodebuild',
3992 }, 4008 },
3993 } 4009 }
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