|
Boost-Build : |
From: Craig Rodrigues (rodrigc_at_[hidden])
Date: 2005-07-13 15:14:37
Hi,
This check is a bit more robust, and uses
the new SHELL builtin.
Index: darwin.jam
===================================================================
RCS file: /cvsroot/boost/boost/tools/build/v2/tools/darwin.jam,v
retrieving revision 1.15
diff -u -r1.15 darwin.jam
--- darwin.jam 16 Jun 2005 05:49:39 -0000 1.15
+++ darwin.jam 13 Jul 2005 20:11:46 -0000
@@ -29,19 +29,13 @@
common.handle-options darwin : $(condition) : $(command) : $(options) ;
- local JAMUNAME = [ modules.peek : JAMUNAME ] ;
-
- # GCC 4.0, the default compiler in Darwin 8.0.0, does not have
- # -fcoalesce-templates. GCC 3.3 needs it. So, we add '-fcoalesce-templates'
- # is either:
- #
- # 1. We're not on 10.4
- # 2. We're on 10.4 and compiler name is g++-3.3
- if $(JAMUNAME[3]) < "8.0.0" || [ MATCH "(g[+][+]-3.3)" : $(command) ]
+ # GCC 4.0 and higher in Darwin does not have -fcoalesce-templates.
+ local gccversion = [ SHELL "$(command) -dumpversion" ] ;
+ if $(gccversion) < "4.0.0"
{
flags darwin.compile.c++ OPTIONS : -fcoalesce-templates ;
}
-
+
gcc.init-link-flags darwin darwin $(condition) ;
}
-- Craig Rodrigues rodrigc_at_[hidden]
Boost-Build 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