2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-15 00:52:16 +00:00

GCC 4.2 and higher in Darwin does not have -Wno-long-double.

[SVN r46004]
This commit is contained in:
Rene Rivera
2008-06-01 03:01:23 +00:00
parent 2f46c0abcb
commit da1eaa20c2

View File

@@ -49,12 +49,18 @@ rule init ( version ? : command * : options * : requirement * )
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 <runtime-link>static
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> ;