From cc4219ad7dd27008da3db5f0e23da9a6ab2f0387 Mon Sep 17 00:00:00 2001 From: "agl@chromium.org" Date: Fri, 14 Aug 2009 05:30:52 +0000 Subject: 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 --- build/common.gypi | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'build') 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', + ], + }], ], }, }], -- cgit v1.1