summaryrefslogtreecommitdiff
path: root/NT_MAKEFILE
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2019-11-05 01:18:35 +0300
committerIvan Maidanski <ivmai@mail.ru>2019-11-05 01:18:35 +0300
commit4dada595d172ba6bd8dd5be1d961d68f08c82058 (patch)
tree4ab847f0ea89bff2cd0586f1ae94825b32bc022c /NT_MAKEFILE
parent803f7ed4bb05d8f79114e0e5f148e70c0a9dd3c7 (diff)
downloadbdwgc-4dada595d172ba6bd8dd5be1d961d68f08c82058.tar.gz
Compile C++ code with exception handling enabled in NT_MAKEFILE
This prevents "noexcept used with no exception handling mode specified" MS VC warning. * NT_MAKEFILE (CXXFLAGS_SPECIFIC): New variable (set to "/EHsc"). * NT_MAKEFILE (.cpp.obj): Pass $CXXFLAGS_SPECIFIC to compiler.
Diffstat (limited to 'NT_MAKEFILE')
-rw-r--r--NT_MAKEFILE4
1 files changed, 3 insertions, 1 deletions
diff --git a/NT_MAKEFILE b/NT_MAKEFILE
index 1ca2b620..628ca5ed 100644
--- a/NT_MAKEFILE
+++ b/NT_MAKEFILE
@@ -77,6 +77,8 @@ CFLAGS_SPECIFIC=$(CFLAGS_DEBUG) $(CFLAGS_GCDLL) $(CFLAGS_MT)
CFLAGS_DEFAULT=-DALL_INTERIOR_POINTERS -DENABLE_DISCLAIM -DGC_ATOMIC_UNCOLLECTABLE -DGC_GCJ_SUPPORT -DJAVA_FINALIZATION -DNO_EXECUTE_PERMISSION -DUSE_MUNMAP
+CXXFLAGS_SPECIFIC=/EHsc
+
# Make sure that .cc is not viewed as a suffix. It is for VC++2005, but
# not earlier versions. We can deal with either, but not inconsistency.
.SUFFIXES:
@@ -109,7 +111,7 @@ check: gctest.exe test_cpp.exe cordtest.exe de.exe
# of safe uses of strncpy. It would be nice to leave the rest enabled.
.cpp.obj:
- $(cc) $(cdebug) $(cflags) $(CFLAGS_SPECIFIC) -Iinclude $(CFLAGS_DEFAULT) -D_CRT_SECURE_NO_DEPRECATE $*.cpp /Fo$*.obj
+ $(cc) $(cdebug) $(cflags) $(CFLAGS_SPECIFIC) -Iinclude $(CFLAGS_DEFAULT) $(CXXFLAGS_SPECIFIC) -D_CRT_SECURE_NO_DEPRECATE $*.cpp /Fo$*.obj
$(OBJS) tests\test.obj: include\private\gc_priv.h include\private\gc_hdrs.h include\gc.h include\private\gcconfig.h include\private\gc_locks.h include\private\gc_pmark.h include\gc_mark.h include\gc_disclaim.h include\private\msvc_dbg.h