Skip to content

Commit

Permalink
Add workaround to compile w/c++17 and old boost on macOS
Browse files Browse the repository at this point in the history
This can be removed once the buildstack has been updated to
use recent boost.
x42 committed Sep 14, 2024
1 parent e299635 commit 9f438aa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wscript
Original file line number Diff line number Diff line change
@@ -590,6 +590,9 @@ int main() { return 0; }''',
linker_flags.append('--stdlib=libstdc++')
# Prevents visibility issues in standard headers
conf.define("_DARWIN_C_SOURCE", 1)
# C++17 removes 'unary_function' and 'binary_function' this breaks older boost versions
# prior to boost 1.81.0
cxx_flags.append('-D_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION')
else:
cxx_flags.append('-DBOOST_NO_AUTO_PTR')
cxx_flags.append('-DBOOST_BIND_GLOBAL_PLACEHOLDERS')

0 comments on commit 9f438aa

Please sign in to comment.