summaryrefslogtreecommitdiff
path: root/common.gypi
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2015-01-08 11:23:59 +0100
committerBert Belder <bertbelder@gmail.com>2015-01-08 11:42:10 +0100
commit4519db0407e394170eee958920112f153c27912a (patch)
treefb32af83c0d4ffc0fcf2154e801ead8e8230c551 /common.gypi
parentda9eff80a3e9042f335867436617f940e86dbf0d (diff)
downloadandroid-node-v8-4519db0407e394170eee958920112f153c27912a.tar.gz
android-node-v8-4519db0407e394170eee958920112f153c27912a.tar.bz2
android-node-v8-4519db0407e394170eee958920112f153c27912a.zip
win: disable stl exception usage
Tell the stl that exception handling is unavailable. This avoids warnings like: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ xlocale(337): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc PR-URL: https://github.com/iojs/io.js/pull/258 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'common.gypi')
-rw-r--r--common.gypi2
1 files changed, 2 insertions, 0 deletions
diff --git a/common.gypi b/common.gypi
index 0a9008cc20..7072a83aab 100644
--- a/common.gypi
+++ b/common.gypi
@@ -179,6 +179,8 @@
# ... or that C implementations shouldn't use
# POSIX names
'_CRT_NONSTDC_NO_DEPRECATE',
+ # Make sure the STL doesn't try to use exceptions
+ '_HAS_EXCEPTIONS=0',
'BUILDING_V8_SHARED=1',
'BUILDING_UV_SHARED=1',
],