Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r70298 - trunk/tools/build/v2/tools
From: grafikrobot_at_[hidden]
Date: 2011-03-21 00:19:31


Author: grafik
Date: 2011-03-21 00:19:27 EDT (Mon, 21 Mar 2011)
New Revision: 70298
URL: http://svn.boost.org/trac/boost/changeset/70298

Log:
Building for iPhoneSim is a mixed bag, it's OSX and it's not. We actually need to compile as OSX but tell it that we are requiring iOS by defining __IPHONE_OS_VERSION_MIN_REQUIRED=X instead of -miphoneos-version-min=X.
Text files modified:
   trunk/tools/build/v2/tools/darwin.jam | 19 ++++++++++++++++++-
   1 files changed, 18 insertions(+), 1 deletions(-)

Modified: trunk/tools/build/v2/tools/darwin.jam
==============================================================================
--- trunk/tools/build/v2/tools/darwin.jam (original)
+++ trunk/tools/build/v2/tools/darwin.jam 2011-03-21 00:19:27 EDT (Mon, 21 Mar 2011)
@@ -254,6 +254,22 @@
         # Then device variation options.
         switch $(version[1])
         {
+ case iphonesim* :
+ {
+ local N = $(version[2]) ;
+ if ! $(version[3]) { N += 00 ; }
+ else if [ regex.match (..) : $(version[3]) ] { N += $(version[3]) ; }
+ else { N += 0$(version[3]) ; }
+ if ! $(version[4]) { N += 00 ; }
+ else if [ regex.match (..) : $(version[4]) ] { N += $(version[4]) ; }
+ else { N += 0$(version[4]) ; }
+ N = $(N:J=) ;
+ flags darwin.compile OPTIONS <macosx-version-min>$(version-feature)
+ : -D__IPHONE_OS_VERSION_MIN_REQUIRED=$(N) ;
+ flags darwin.link OPTIONS <macosx-version-min>$(version-feature)
+ : -D__IPHONE_OS_VERSION_MIN_REQUIRED=$(N) ;
+ }
+
             case iphone* :
             {
                 flags darwin.compile OPTIONS <macosx-version-min>$(version-feature)
@@ -482,7 +498,8 @@
 flags darwin.compile OPTIONS <link>shared : -dynamic ;
 
 # Misc options.
-flags darwin.compile OPTIONS : -no-cpp-precomp -gdwarf-2 ;
+flags darwin.compile OPTIONS : -no-cpp-precomp -gdwarf-2 -fexceptions ;
+#~ flags darwin.link OPTIONS : -fexceptions ;
 
 # Add the framework names to use.
 flags darwin.link FRAMEWORK <framework> ;


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk