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

PR: #25141
PR-URL: https://github.com/joyent/node/pull/25141
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Reviewed-By: Julien Gilli <jgilli@fastmail.fm>
v0.12.3-release
Trevor Norris 10 years ago
committed by Julien Gilli
parent
commit
e1cc263ce8
  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