Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Commit e1cc263

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 Reviewed-By: Julien Gilli <julien.gilli@joyent.com> PR-URL: #9179 PR: #25141 PR-URL: #25141 Reviewed-By: Trevor Norris <trev.norris@gmail.com> Reviewed-By: Julien Gilli <jgilli@fastmail.fm>
1 parent 84f1ab6 commit e1cc263

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)