summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2015-10-27 19:48:04 -0700
committerThiago Macieira <thiago.macieira@intel.com>2016-06-09 15:58:23 +0000
commit7835b260a9f60c98ee41468b040ac080782afe2f (patch)
tree455e2f34ba34b1d255283a1b8085d5fb558a1d41 /configure
parent0a78d918f0f411e0da2242a84a396f169154f5d6 (diff)
configure: check whether std::atomic<T> works for function pointers
And ask the user to apply one of the patches we're carrying to their Standard Libraries. Change-Id: I7e6338336dd6468ead24ffff141139c79056922e Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure b/configure
index 049d393e7f..29b228f5bb 100755
--- a/configure
+++ b/configure
@@ -4486,6 +4486,14 @@ else
CFG_ATOMIC64=no
fi
+# Detect whether std::atomic works for function pointers -- some implementations are buggy
+if ! compileTest common/atomicfptr "std::atomic for function pointers"; then
+ echo "ERROR: detected a std::atomic implementation that fails for function pointers."
+ echo "Please apply the patch corresponding to your Standard Library vendor, found in"
+ echo " $relpath/config.tests/common/atomicfptr"
+ exit 101
+fi
+
# detect sse2 support
CFG_SSE_LIST=
if [ "${CFG_SSE2}" = "auto" ]; then