Skip to content

Instantly share code, notes, and snippets.

@jnbrunet
Last active May 14, 2021 07:29
Show Gist options
  • Save jnbrunet/28b93c3b36672e6395b0d875fe151c7b to your computer and use it in GitHub Desktop.
Save jnbrunet/28b93c3b36672e6395b0d875fe151c7b to your computer and use it in GitHub Desktop.
Boost 1.67 remove unsupported flags for recent Darwin compiler
diff --git a/src/tools/darwin.jam b/src/tools/darwin.jam
index 57d9c752..1886f4c4 100644
--- a/src/tools/darwin.jam
+++ b/src/tools/darwin.jam
@@ -137,16 +137,6 @@ rule init ( version ? : command * : options * : requirement * )
# - Set the toolset generic common options.
common.handle-options darwin : $(condition) : $(command) : $(options) ;
- # - GCC 4.0 and higher in Darwin does not have -fcoalesce-templates.
- if $(real-version) < "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 $(real-version) < "4.2.0"
- {
- flags darwin.compile OPTIONS $(condition) : -Wno-long-double ;
- }
# - GCC on Darwin with -pedantic, suppress unsupported long long warning
flags darwin.compile OPTIONS $(condition)/<warnings>all : -Wno-long-long ;
diff --git a/src/tools/darwin.py b/src/tools/darwin.py
index f03d63f3..f3ff7471 100644
--- a/src/tools/darwin.py
+++ b/src/tools/darwin.py
@@ -37,8 +37,8 @@ type.register_suffixes ('dylib', 'SHARED_LIB')
feature.feature ('framework', [], ['free'])
toolset.flags ('darwin.compile', 'OPTIONS', '<link>shared', ['-dynamic'])
-toolset.flags ('darwin.compile', 'OPTIONS', None, ['-Wno-long-double', '-no-cpp-precomp'])
-toolset.flags ('darwin.compile.c++', 'OPTIONS', None, ['-fcoalesce-templates'])
+toolset.flags ('darwin.compile', 'OPTIONS', None, ['-no-cpp-precomp'])
+toolset.flags ('darwin.compile.c++', 'OPTIONS', None, [])
toolset.flags ('darwin.link', 'FRAMEWORK', '<framework>')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment