Enforce that hhstc --naming-table requires --root
[hiphop-php.git] / third-party / boost / b3a59d265929a213f02a451bb6-macos-coalesce-template.patch
blobece17df4dd5b7aa85b24317a991f02be5037c67e
1 From b3a59d265929a213f02a451bb63cea75d668a4d9 Mon Sep 17 00:00:00 2001
2 From: Bo Anderson <mail@boanderson.me>
3 Date: Thu, 2 Apr 2020 01:31:47 +0100
4 Subject: [PATCH] Fix compiler version check on macOS (#560)
6 Fixes #440.
7 ---
8 src/tools/darwin.jam | 5 +++--
9 1 file changed, 3 insertions(+), 2 deletions(-)
11 diff --git a/src/tools/darwin.jam b/src/tools/darwin.jam
12 index 8d477410b043207e35c5ecd543aa5680ae66f39d..97e7ecb851303a1f9a759c7801d42922a420a4fa 100644
13 --- a/src/tools/darwin.jam
14 +++ b/src/tools/darwin.jam
15 @@ -137,13 +137,14 @@ rule init ( version ? : command * : options * : requirement * )
16 # - Set the toolset generic common options.
17 common.handle-options darwin : $(condition) : $(command) : $(options) ;
19 + real-version = [ regex.split $(real-version) \\. ] ;
20 # - GCC 4.0 and higher in Darwin does not have -fcoalesce-templates.
21 - if $(real-version) < "4.0.0"
22 + if [ version.version-less $(real-version) : 4 0 ]
24 flags darwin.compile.c++ OPTIONS $(condition) : -fcoalesce-templates ;
26 # - GCC 4.2 and higher in Darwin does not have -Wno-long-double.
27 - if $(real-version) < "4.2.0"
28 + if [ version.version-less $(real-version) : 4 2 ]
30 flags darwin.compile OPTIONS $(condition) : -Wno-long-double ;