summaryrefslogtreecommitdiffstats
path: root/src/corelib/thread/qatomic_cxx11.h
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2022-09-17 22:51:10 +0200
committerFabian Kosmale <fabian.kosmale@qt.io>2022-09-28 01:23:31 +0200
commitc5b816393d1ea88f047ae05568786d54b5bd5f56 (patch)
treeb94fcaaa7b8a3de4ebd2d3017cdba1f083d3709c /src/corelib/thread/qatomic_cxx11.h
parent7d7d4671bd641634bd7ab8fd523ca96f7cda95ee (diff)
Get rid of bootstrapped atomics
C++11 atomics should be available everywhere, even it bootstrapped builds. This will allow further simplificattions. Task-number: QTBUG-103847 Change-Id: Ic8aaec5667ef7616a6aa1f0dfc2f64d327308501 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/thread/qatomic_cxx11.h')
-rw-r--r--src/corelib/thread/qatomic_cxx11.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/thread/qatomic_cxx11.h b/src/corelib/thread/qatomic_cxx11.h
index cf794d3f3b..4f55a53ae3 100644
--- a/src/corelib/thread/qatomic_cxx11.h
+++ b/src/corelib/thread/qatomic_cxx11.h
@@ -149,7 +149,7 @@ template <> inline bool QAtomicTraits<2>::isLockFree()
{ return false; }
#endif
-#if QT_CONFIG(std_atomic64)
+#if !defined(QT_BOOTSTRAPPED) && QT_CONFIG(std_atomic64)
template<> struct QAtomicOpsSupport<8> { enum { IsSupported = 1 }; };
# define Q_ATOMIC_INT64_IS_SUPPORTED
# if ATOMIC_LLONG_LOCK_FREE == 2