From fe136cedb9f5d627e5b21934a48c97ff62f4c50e Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Thu, 28 Mar 2013 00:10:44 +0100 Subject: [PATCH] build: disable -Wstrict-aliasing on darwin The antiquated gcc/clang that ships with Xcode emits waaaay too many false positives. --- uv.gyp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/uv.gyp b/uv.gyp index 5217ed1c..db90ee90 100644 --- a/uv.gyp +++ b/uv.gyp @@ -115,7 +115,6 @@ '-pedantic', '-Wall', '-Wextra', - '-Wstrict-aliasing', '-Wno-unused-parameter', ], 'sources': [ @@ -181,6 +180,11 @@ '_DARWIN_USE_64_BIT_INODE=1', ] }], + [ 'OS!="mac"', { + # Enable on all platforms except OS X. The antique gcc/clang that + # ships with Xcode emits waaaay too many false positives. + 'cflags': [ '-Wstrict-aliasing' ], + }], [ 'OS=="linux"', { 'sources': [ 'src/unix/linux-core.c', @@ -425,5 +429,3 @@ } ] } - -