Commit 87c8ab7c authored by Dominik Charousset's avatar Dominik Charousset

Disable thread_local on GCC/macOS

See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67135
parent 37a59d02
......@@ -125,6 +125,11 @@
# define CAF_ANNOTATE_FALLTHROUGH static_cast<void>(0)
# define CAF_COMPILER_VERSION \
(__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
// disable thread_local on GCC/macOS due to heap-use-after-free bug:
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67135
# ifdef __APPLE__
# define CAF_NO_THREAD_LOCAL
# endif
#elif defined(_MSC_VER)
# define CAF_MSVC
# define CAF_DEPRECATED
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment