summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-14 05:30:52 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-14 05:30:52 +0000
commitcc4219ad7dd27008da3db5f0e23da9a6ab2f0387 (patch)
treefbb1c5407aac9fbca6781d67615ebf4194e82699 /build
parentc2c901bf406a50085002f8f1d6d63288d6e28c05 (diff)
downloadchromium_src-cc4219ad7dd27008da3db5f0e23da9a6ab2f0387.zip
chromium_src-cc4219ad7dd27008da3db5f0e23da9a6ab2f0387.tar.gz
chromium_src-cc4219ad7dd27008da3db5f0e23da9a6ab2f0387.tar.bz2
Linux: add GYP flag for -fno-strict-aliasing.
We're still figuring out what to do about strict aliasing and V8. In the mean time, V8 (and other parts of the code) are unbuildable with GCC 4.4 and strict aliasing. Adding this flag at the request of fta. http://codereview.chromium.org/164538 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23421 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rw-r--r--build/common.gypi6
1 files changed, 6 insertions, 0 deletions
diff --git a/build/common.gypi b/build/common.gypi
index 99025df..fed9d96 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -354,6 +354,7 @@
# be disabled in ~/.gyp/include.gypi on the valgrind builders.
'variables': {
'werror%': '-Werror',
+ 'no_strict_aliasing%': 0,
},
'cflags': [
'<(werror)', # See note above about the werror variable.
@@ -539,6 +540,11 @@
}],
],
}],
+ ['no_strict_aliasing==1', {
+ 'cflags': [
+ '-fno-strict-aliasing',
+ ],
+ }],
],
},
}],