Commit b3a59d2 1 parent ac2c8d6 commit b3a59d2 Copy full SHA for b3a59d2
File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -137,13 +137,14 @@ rule init ( version ? : command * : options * : requirement * )
137
137
# - Set the toolset generic common options.
138
138
common.handle-options darwin : $(condition) : $(command) : $(options) ;
139
139
140
+ real-version = [ regex.split $(real-version) \\. ] ;
140
141
# - 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 ]
142
143
{
143
144
flags darwin.compile.c++ OPTIONS $(condition) : -fcoalesce-templates ;
144
145
}
145
146
# - 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 ]
147
148
{
148
149
flags darwin.compile OPTIONS $(condition) : -Wno-long-double ;
149
150
}
You can’t perform that action at this time.
0 commit comments