From 6e1777619e4b668fdbb5952cd1863283cf539e7c Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Thu, 10 Jun 2010 17:52:08 +0000 Subject: 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 --- Jamrules.jam | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'Jamrules.jam') 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) ; } -- cgit v1.2.3