summaryrefslogtreecommitdiff
path: root/Jamrules.jam
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2009-10-29 08:11:22 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2009-10-29 08:11:22 +0000
commit1fdd096c8011446935396baf447bfed9331f3ff3 (patch)
treeb003f83cd04fd2b17cc94c1f2b790da79ef7f241 /Jamrules.jam
parent6210c21984e9319b04ba84cc9937e92519770295 (diff)
tests: Tests can work without exceptions now
git-svn-id: http://pugixml.googlecode.com/svn/trunk@194 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'Jamrules.jam')
-rw-r--r--Jamrules.jam8
1 files changed, 6 insertions, 2 deletions
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