Comments (4)
Did some digging and that commit to libcxxabi looks like it was included in clang4. Here's the patch I'm currently using. It might break some users that aren't using libcxxabi though.. not really too sure on the best way to handle this.
--- boost/config/stdlib/libcpp.hpp 2018-07-26 10:09:30.091065048 +1000
+++ boost/config/stdlib/libcpp.hpp 2018-07-26 10:14:24.641990321 +1000
@@ -113,10 +113,16 @@
# define BOOST_NO_CXX11_THREAD_LOCAL
#endif
-#if defined(__linux__) && !defined(BOOST_NO_CXX11_THREAD_LOCAL)
+#if defined(__linux__) && _LIBCPP_VERSION < 4000 && !defined(BOOST_NO_CXX11_THREAD_LOCAL)
// After libc++-dev is installed on Trusty, clang++-libc++ almost works,
// except uses of `thread_local` fail with undefined reference to
// `__cxa_thread_atexit`.
+//
+// clang's libc++abi provides an implementation by deferring to the glibc
+// implementation, which may or may not be available (it is not on Trusty).
+// clang 4's libc++abi will provide an implementation if one is not in glibc
+// though, so thread local support should work with clang 4 and above as long
+// as libc++abi is linked in.
# define BOOST_NO_CXX11_THREAD_LOCAL
#endif
from config.
Confirmed as working with Ubuntu clang-6 packages at least.
from config.
Spoke too soon.... failed CI testing with clang-5. Updating the CI tests and waiting for them to cycle...
from config.
CI is passing now, not sure if we have all the wrinkles sorted, but it's better than it was.
from config.
Related Issues (20)
- Missing BOOST_NO_CXX11_HDR_SCOPED_ALLOCATOR
- Autolink not working in VS2022 vs 17.0.6 HOT 2
- No BOOST_NO_CXX11_ALIGNOF HOT 4
- NVIDIA C++ compiler -cuda option triggers incompatible redefiniton of BOOST_COMPILER
- Support for IAR compiler HOT 1
- "Unknown compiler version" for Visual Studio 16 2019 HOT 2
- BOOST_HAS_INT128 not defined on clang-cl HOT 4
- Delete merged/stale branches HOT 1
- Configuration doesn't work correctly with clang on Linux HOT 5
- [MSVC][std:c++latest] Boost\libs\config run tests failed due to error C2666: 'boost_no_cxx11_unified_initialization_syntax::IdString::operator ==': overloaded functions have similar conversions HOT 3
- Missing define BOOST_NO_CXX11_NULLPTR on OSX with libstdc++ HOT 2
- New error for CLR projects which have no SFINAE HOT 2
- CMake - "lib" prefix bug in implibs of MSVC HOT 3
- BOOST_HAS_BUILTIN/BOOST_HAS_INCLUDE
- missing version macros
- missing header macros for C++23
- Outdated defect macros for Haiku HOT 1
- VS 2022 v17.10
- Missing features of C++/CLI seems to be flagged erroneously HOT 1
- msvc::no_unique_address
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from config.