Add workaround to compile w/c++17 and old boost on macOS
This can be removed once the buildstack has been updated to use recent boost.
This commit is contained in:
parent
e299635511
commit
9f438aa773
3
wscript
3
wscript
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user