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:
@@ -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> ;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user