Skip to content

Commit b3a59d2

Browse files
authored
Fix compiler version check on macOS (#560)
Fixes #440.
1 parent ac2c8d6 commit b3a59d2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/tools/darwin.jam

+3-2
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,14 @@ rule init ( version ? : command * : options * : requirement * )
137137
# - Set the toolset generic common options.
138138
common.handle-options darwin : $(condition) : $(command) : $(options) ;
139139

140+
real-version = [ regex.split $(real-version) \\. ] ;
140141
# - GCC 4.0 and higher in Darwin does not have -fcoalesce-templates.
141-
if $(real-version) < "4.0.0"
142+
if [ version.version-less $(real-version) : 4 0 ]
142143
{
143144
flags darwin.compile.c++ OPTIONS $(condition) : -fcoalesce-templates ;
144145
}
145146
# - GCC 4.2 and higher in Darwin does not have -Wno-long-double.
146-
if $(real-version) < "4.2.0"
147+
if [ version.version-less $(real-version) : 4 2 ]
147148
{
148149
flags darwin.compile OPTIONS $(condition) : -Wno-long-double ;
149150
}

0 commit comments

Comments
 (0)