summaryrefslogtreecommitdiffstats
path: root/build/common.gypi
diff options
context:
space:
mode:
authorcraig.schlenter@chromium.org <craig.schlenter@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-03 17:32:10 +0000
committercraig.schlenter@chromium.org <craig.schlenter@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-03 17:32:10 +0000
commit242a9e626cb6efee738d71849023f804dc6b5bde (patch)
tree475486fd3aec35f33aa1d33d0014f6b309d790c8 /build/common.gypi
parentb01a36d473f5b6ba23f4566b3ee4e9144b362de9 (diff)
downloadchromium_src-242a9e626cb6efee738d71849023f804dc6b5bde.zip
chromium_src-242a9e626cb6efee738d71849023f804dc6b5bde.tar.gz
chromium_src-242a9e626cb6efee738d71849023f804dc6b5bde.tar.bz2
Linux: Autodetect and change build flags when using gcc 4.4.
This runs g++ -dumpversion (or $CXX) to establish the compiler version and set the gyp gcc_version variable automatically. BUG=25209 Review URL: http://codereview.chromium.org/339046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30824 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/common.gypi')
-rw-r--r--build/common.gypi3
1 files changed, 3 insertions, 0 deletions
diff --git a/build/common.gypi b/build/common.gypi
index 05c8de9d..52ce4d2 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -182,6 +182,9 @@
'conditions': [
['OS=="linux"', {
+ # This will set gcc_version to XY if you are running gcc X.Y.*.
+ # This is used to tweak build flags for gcc 4.4.
+ 'gcc_version%': '<!(python <(DEPTH)/build/compiler_version.py)',
'conditions': [
['branding=="Chrome" or linux_chromium_breakpad==1', {
'linux_breakpad%': 1,