aboutsummaryrefslogtreecommitdiff
path: root/build2/scheduler
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-12-13 16:40:50 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-12-13 16:40:50 +0200
commit1a742c236b7470fff05bfb85fe74206ca8c08b18 (patch)
tree48a3bb4aec78c1887ec0299584a6bffc35a527a4 /build2/scheduler
parent22b8744a7cede83906dfb4a08c55b69dd6878866 (diff)
Use config macros from libbutl
Diffstat (limited to 'build2/scheduler')
-rw-r--r--build2/scheduler10
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_;