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: http://src.chromium.org/svn/trunk/src/build@23421 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
Родитель
cf39bd37a9
Коммит
5bb24236c5
|
@ -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',
|
||||
],
|
||||
}],
|
||||
],
|
||||
},
|
||||
}],
|
||||
|
|
Загрузка…
Ссылка в новой задаче