aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--binding.gyp10
-rw-r--r--templates/binding.gyp.template10
2 files changed, 20 insertions, 0 deletions
diff --git a/binding.gyp b/binding.gyp
index 050bc40664..4c6a641b8c 100644
--- a/binding.gyp
+++ b/binding.gyp
@@ -73,6 +73,16 @@
]
]
}],
+ ['OS=="mac"', {
+ 'xcode_settings': {
+ 'MACOSX_DEPLOYMENT_TARGET': '10.9',
+ 'OTHER_CFLAGS': [
+ '-fno-strict-aliasing',
+ '-std=c++11',
+ '-stdlib=libc++'
+ ]
+ }
+ }]
]
},
'targets': [
diff --git a/templates/binding.gyp.template b/templates/binding.gyp.template
index e86449fd3f..982a9aeace 100644
--- a/templates/binding.gyp.template
+++ b/templates/binding.gyp.template
@@ -75,6 +75,16 @@
]
]
}],
+ ['OS=="mac"', {
+ 'xcode_settings': {
+ 'MACOSX_DEPLOYMENT_TARGET': '10.9',
+ 'OTHER_CFLAGS': [
+ '-fno-strict-aliasing',
+ '-std=c++11',
+ '-stdlib=libc++'
+ ]
+ }
+ }]
]
},
'targets': [