Boost logo

Boost-Commit :

From: grafikrobot_at_[hidden]
Date: 2008-05-31 23:01:23


Author: grafik
Date: 2008-05-31 23:01:23 EDT (Sat, 31 May 2008)
New Revision: 46004
URL: http://svn.boost.org/trac/boost/changeset/46004

Log:
GCC 4.2 and higher in Darwin does not have -Wno-long-double.
Text files modified:
   trunk/tools/build/v2/tools/darwin.jam | 10 ++++++++--
   1 files changed, 8 insertions(+), 2 deletions(-)

Modified: trunk/tools/build/v2/tools/darwin.jam
==============================================================================
--- trunk/tools/build/v2/tools/darwin.jam (original)
+++ trunk/tools/build/v2/tools/darwin.jam 2008-05-31 23:01:23 EDT (Sat, 31 May 2008)
@@ -49,12 +49,18 @@
     
     common.handle-options darwin : $(condition) : $(command) : $(options) ;
     
- # GCC 4.0 and higher in Darwin does not have -fcoalesce-templates.
     local gccversion = [ SHELL "$(command:J= ) -dumpversion" ] ;
+
+ # GCC 4.0 and higher in Darwin does not have -fcoalesce-templates.
     if $(gccversion) < "4.0.0"
     {
         flags darwin.compile.c++ OPTIONS $(condition) : -fcoalesce-templates ;
     }
+ # GCC 4.2 and higher in Darwin does not have -Wno-long-double.
+ if $(gccversion) < "4.2.0"
+ {
+ flags darwin.compile OPTIONS $(condition) : -Wno-long-double ;
+ }
 
     gcc.init-link-flags darwin darwin $(condition) ;
 
@@ -205,7 +211,7 @@
 flags darwin.link OPTIONS <variant>release : -Wl,-dead_strip -no_dead_strip_inits_and_terms ;
 
 flags darwin.compile OPTIONS <link>shared : -dynamic ;
-flags darwin.compile OPTIONS : -Wno-long-double -no-cpp-precomp -gdwarf-2 ;
+flags darwin.compile OPTIONS : -no-cpp-precomp -gdwarf-2 ;
 
 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