diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-12-13 16:40:50 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-12-13 16:40:50 +0200 |
commit | 1a742c236b7470fff05bfb85fe74206ca8c08b18 (patch) | |
tree | 48a3bb4aec78c1887ec0299584a6bffc35a527a4 /build2/scheduler | |
parent | 22b8744a7cede83906dfb4a08c55b69dd6878866 (diff) |
Use config macros from libbutl
Diffstat (limited to 'build2/scheduler')
-rw-r--r-- | build2/scheduler | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/build2/scheduler b/build2/scheduler index ffb8acd..3160433 100644 --- a/build2/scheduler +++ b/build2/scheduler @@ -457,14 +457,10 @@ namespace build2 // TLS cache of thread's task queue. // static - // Apparently Apple's Clang "temporarily disabled" C++11 thread_local - // until they can implement a "fast" version, which reportedly happened in - // XCode 8. So for now we will continue using __thread for this target. - // -#if defined(__apple_build_version__) && __apple_build_version__ < 8000000 - __thread -#else +#ifdef BUTL_CXX11_THREAD_LOCAL thread_local +#else + __thread #endif task_queue* task_queue_; |