diff options
author | Trevor Norris <trev.norris@gmail.com> | 2015-02-10 13:10:05 -0700 |
---|---|---|
committer | Trevor Norris <trev.norris@gmail.com> | 2015-03-19 12:06:55 -0700 |
commit | c0766eb1a4dac9d9b555be271ef84ad401ba91b0 (patch) | |
tree | a581471ab3e323d2b60eb39c9b6bc1af8e4938d4 | |
parent | 7a37910f25a9397ccfb2b4136273db803cb4345f (diff) | |
download | node-c0766eb1a4dac9d9b555be271ef84ad401ba91b0.tar.gz |
build: fix use of strict aliasing
The -fno-strict-aliasing flag was added to fix compilation warnings when
building Node.js with GCC <= 4.4
Reviewed-By: Julien Gilli <julien.gilli@joyent.com>
PR-URL: https://github.com/joyent/node/pull/9179
-rw-r--r-- | deps/uv/uv.gyp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/deps/uv/uv.gyp b/deps/uv/uv.gyp index 1ef8c05ad..203ae1169 100644 --- a/deps/uv/uv.gyp +++ b/deps/uv/uv.gyp @@ -64,6 +64,12 @@ 'src/version.c' ], 'conditions': [ + [ 'gcc_version<=44', { + # GCC versions <= 4.4 do not handle the aliasing in the queue + # implementation, so disable aliasing on these platforms + # to avoid subtle bugs + 'cflags': [ '-fno-strict-aliasing' ], + }], [ 'OS=="win"', { 'defines': [ '_WIN32_WINNT=0x0600', |