|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r57449 - trunk/tools/build/v2/tools
From: grafikrobot_at_[hidden]
Date: 2009-11-07 09:53:25
Author: grafik
Date: 2009-11-07 09:53:24 EST (Sat, 07 Nov 2009)
New Revision: 57449
URL: http://svn.boost.org/trac/boost/changeset/57449
Log:
Pass the correct minos options to Xcode for iPhoneOS.
Text files modified:
trunk/tools/build/v2/tools/darwin.jam | 23 +++++++++++++++++++----
1 files changed, 19 insertions(+), 4 deletions(-)
Modified: trunk/tools/build/v2/tools/darwin.jam
==============================================================================
--- trunk/tools/build/v2/tools/darwin.jam (original)
+++ trunk/tools/build/v2/tools/darwin.jam 2009-11-07 09:53:24 EST (Sat, 07 Nov 2009)
@@ -261,10 +261,25 @@
# option to not be included to let the compiler default take hold.
for local macosx-version in $(.macosx-versions)
{
- flags darwin.compile OPTIONS <macosx-version-min>$(macosx-version)
- : -mmacosx-version-min=$(macosx-version) ;
- flags darwin.link OPTIONS <macosx-version-min>$(macosx-version)
- : -mmacosx-version-min=$(macosx-version) ;
+ switch $(macosx-version)
+ {
+ case iphone* :
+ {
+ local version-match = [ MATCH ([^0-9]+)([0-9.]+) : $(macosx-version) ] ;
+ flags darwin.compile OPTIONS <macosx-version-min>$(macosx-version)
+ : -miphoneos-version-min=$(version-match[2]) ;
+ flags darwin.link OPTIONS <macosx-version-min>$(macosx-version)
+ : -miphoneos-version-min=$(version-match[2]) ;
+ }
+
+ case * :
+ {
+ flags darwin.compile OPTIONS <macosx-version-min>$(macosx-version)
+ : -mmacosx-version-min=$(macosx-version) ;
+ flags darwin.link OPTIONS <macosx-version-min>$(macosx-version)
+ : -mmacosx-version-min=$(macosx-version) ;
+ }
+ }
}
# The following adds objective-c support to darwin.
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