Modified Mac build fix for new binding.gyp structure
diff --git a/templates/binding.gyp.template b/templates/binding.gyp.template
index 982a9ae..2be275b 100644
--- a/templates/binding.gyp.template
+++ b/templates/binding.gyp.template
@@ -75,16 +75,6 @@
]
]
}],
- ['OS=="mac"', {
- 'xcode_settings': {
- 'MACOSX_DEPLOYMENT_TARGET': '10.9',
- 'OTHER_CFLAGS': [
- '-fno-strict-aliasing',
- '-std=c++11',
- '-stdlib=libc++'
- ]
- }
- }]
]
},
'targets': [
@@ -104,6 +94,16 @@
'${source}',
% endfor
],
+ "conditions": [
+ ['OS == "mac"', {
+ 'xcode_settings': {
+ 'MACOSX_DEPLOYMENT_TARGET': '10.9',
+ 'OTHER_CFLAGS': [
+ '-stdlib=libc++'
+ ]
+ }
+ }]
+ ],
},
% endif
% endfor