Skip to content

Commit 097607c

Browse files
trevnorrisJulien Gilli
authored and
Julien Gilli
committed
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 PR: nodejs#25141 Reviewed-By: Julien Gilli <[email protected]> PR-URL: nodejs#25475
1 parent 50f9615 commit 097607c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

deps/uv/uv.gyp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@
6464
'src/version.c'
6565
],
6666
'conditions': [
67+
[ 'gcc_version<=44', {
68+
# GCC versions <= 4.4 do not handle the aliasing in the queue
69+
# implementation, so disable aliasing on these platforms
70+
# to avoid subtle bugs
71+
'cflags': [ '-fno-strict-aliasing' ],
72+
}],
6773
[ 'OS=="win"', {
6874
'defines': [
6975
'_WIN32_WINNT=0x0600',

0 commit comments

Comments
 (0)