diff options
author | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2010-06-10 17:52:08 +0000 |
---|---|---|
committer | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2010-06-10 17:52:08 +0000 |
commit | 6e1777619e4b668fdbb5952cd1863283cf539e7c (patch) | |
tree | 882f547274c52215ae1a07760c0beba02012d3aa /Jamrules.jam | |
parent | c74fe071ddd114898a274ade279288dcfaf26e93 (diff) |
tests: Autotest now targets several architectures on MacOS, minor report refactoring
git-svn-id: http://pugixml.googlecode.com/svn/trunk@509 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'Jamrules.jam')
-rw-r--r-- | Jamrules.jam | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Jamrules.jam b/Jamrules.jam index 5357e7e..a6dbc75 100644 --- a/Jamrules.jam +++ b/Jamrules.jam @@ -14,6 +14,20 @@ if ( $(toolset:I=^mingw) || $(toolset:I=^gcc) ) if ( $(OS) != MACOSX ) { LDFLAGS += -static-libgcc -static ; + ARCH = "" ; + } + else + { + if ( $(toolset:I=_x64) ) + { + ARCH = -arch x86_64 ; + } + else if ( $(toolset:I=_ppc) ) + { + ARCH = -arch ppc ; + } + + LDFLAGS += $(ARCH) ; } rule GetCFlags CONFIG : DEFINES @@ -46,6 +60,8 @@ if ( $(toolset:I=^mingw) || $(toolset:I=^gcc) ) RESULT += -fno-exceptions ; } + RESULT += $(ARCH) ; + return $(RESULT) ; } |