diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2015-10-27 19:48:04 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2016-06-09 15:58:23 +0000 |
commit | 7835b260a9f60c98ee41468b040ac080782afe2f (patch) | |
tree | 455e2f34ba34b1d255283a1b8085d5fb558a1d41 /configure | |
parent | 0a78d918f0f411e0da2242a84a396f169154f5d6 (diff) | |
download | qtbase-7835b260a9f60c98ee41468b040ac080782afe2f.tar.gz |
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-x | configure | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |