From 1fdd096c8011446935396baf447bfed9331f3ff3 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Thu, 29 Oct 2009 08:11:22 +0000 Subject: tests: Tests can work without exceptions now git-svn-id: http://pugixml.googlecode.com/svn/trunk@194 99668b35-9821-0410-8761-19e4c4f06640 --- Jamrules.jam | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Jamrules.jam') diff --git a/Jamrules.jam b/Jamrules.jam index fccb75c..8733b25 100644 --- a/Jamrules.jam +++ b/Jamrules.jam @@ -64,6 +64,10 @@ else if ( $(toolset:I=^msvc) ) { CCFLAGS += /EHsc ; } + else + { + CCFLAGS += /D_HAS_EXCEPTIONS=0 ; + } actions ObjectAction { @@ -136,14 +140,14 @@ else if ( $(toolset:I=^dmc) ) CCFLAGS += -DNDEBUG ; } - if ( !(PUGIXML_NO_EXCEPTIONS in $(defines)) ) + if ( ! ( PUGIXML_NO_EXCEPTIONS in $(defines) ) ) { CCFLAGS += -Ae ; } actions ObjectAction { - "%$(toolset)_PATH%\bin\dmc.exe" -c -f -wx $(>) -o$(<) + "%$(toolset)_PATH%\bin\dmc.exe" -c -f -wx $(>) -o$(<) $(CCFLAGS) } actions LibraryAction -- cgit v1.2.3