Browse Source

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
v0.12.2-release
Trevor Norris 10 years ago
parent
commit
c0766eb1a4
  1. 6
      deps/uv/uv.gyp

6
deps/uv/uv.gyp

@ -64,6 +64,12 @@
'src/version.c' 'src/version.c'
], ],
'conditions': [ '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"', { [ 'OS=="win"', {
'defines': [ 'defines': [
'_WIN32_WINNT=0x0600', '_WIN32_WINNT=0x0600',

Loading…
Cancel
Save