diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-11 16:05:03 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-11 16:05:03 +0000 |
commit | 374a58ad2d511d8b21a4526810bd6488df86e32d (patch) | |
tree | ec3d42d1bf6bb5e079767ee09b5a4893367ec2ce /build | |
parent | 5cb87283e85df2bb8451bc250df9bac6eab3b529 (diff) | |
download | chromium_src-374a58ad2d511d8b21a4526810bd6488df86e32d.zip chromium_src-374a58ad2d511d8b21a4526810bd6488df86e32d.tar.gz chromium_src-374a58ad2d511d8b21a4526810bd6488df86e32d.tar.bz2 |
clang: Make it possible to run Elliot's plugin on the bots
To make it possible to change the exact plugin command line without a master restart, the command line is loaded from a bash script. This script is used if clang_use_chrome_plugins and clang are both set in GYP_DEFINES when runhooks runs.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/6461026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74597 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rw-r--r-- | build/common.gypi | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/build/common.gypi b/build/common.gypi index 73a57d9..827be4c 100644 --- a/build/common.gypi +++ b/build/common.gypi @@ -284,6 +284,12 @@ 'clang_load%': '', 'clang_add_plugin%': '', + # If this is set, the clang plugins used on the buildbot will be used. + # Run tools/clang/scripts/update.sh to make sure they are compiled. + # This causes 'clang_chrome_plugins_flags' to be set. + # Has no effect if 'clang' is not set as well. + 'clang_use_chrome_plugins%': 0, + # Enable sampling based profiler. # See http://google-perftools.googlecode.com/svn/trunk/doc/cpuprofile.html 'profiling%': '0', @@ -488,6 +494,11 @@ 'grit_defines': ['-D', 'use_third_party_translations'], 'locales': ['ast', 'eu', 'gl', 'ka', 'ku', 'ug'], }], + + ['clang_use_chrome_plugins==1', { + 'clang_chrome_plugins_flags': + '<!(<(DEPTH)/tools/clang/scripts/plugin_flags.sh)', + }], ], }, 'target_defaults': { @@ -1210,6 +1221,14 @@ ], }]], }], + ['clang==1 and clang_use_chrome_plugins==1', { + 'target_conditions': [ + ['_toolset=="target"', { + 'cflags': [ + '<(clang_chrome_plugins_flags)', + ], + }]], + }], ['clang==1 and clang_load!="" and clang_add_plugin!=""', { 'target_conditions': [ ['_toolset=="target"', { @@ -1333,6 +1352,11 @@ '-Wno-overloaded-virtual', ], }], + ['clang==1 and clang_use_chrome_plugins==1', { + 'OTHER_CFLAGS': [ + '<(clang_chrome_plugins_flags)', + ], + }], ['clang==1 and clang_load!="" and clang_add_plugin!=""', { 'OTHER_CFLAGS': [ '-Xclang', '-load', '-Xclang', '<(clang_load)', |