diff --git a/tools/build/v2/tools/darwin.jam b/tools/build/v2/tools/darwin.jam index 9569f73..91d56f7 100644 --- a/tools/build/v2/tools/darwin.jam +++ b/tools/build/v2/tools/darwin.jam @@ -107,8 +107,13 @@ rule init ( version ? : command * : options * : requirement * ) # - The bin directory where to find the commands to execute. local bin ; + local gcc-default = g++ ; + if [ feature.get-values : $(options) ] = "10.4" && ! [ version.version-less [ regex.split $(.host-osx-version) \\. ] : 10 6 ] + { + gcc-default = g++-4.0 ; + } # - The configured compile driver command. - local command = [ common.get-invocation-command darwin : g++ : $(command) ] ; + local command = [ common.get-invocation-command darwin : $(gcc-default) : $(command) ] ; # The version as reported by the compiler local real-version ;