qt5base-lts/config.tests/common
Thiago Macieira 3d7586b760 Auto-detect whether 64-bit std::atomic really works
The C++ standard says it must, but some badly-configured toolchains seem
to be lacking support.

In particular, for some 32-bit platforms without native support for
them, GCC implements 64-bit atomics via out-of-line functions in
libatomic. If that library is missing... well, then std::atomic 64-bit
doesn't work and we mustn't try to use it.

This was found when trying to compile Qt 5.6 for MIPS 32-bit:

Linking library libQt5Core.so.5.6.0
.obj/qsimd.o: In function `std::__atomic_base<unsigned long long>::load(std::memory_order) const':
/opt/poky/1.7/sysroots/mips32r2-poky-linux/usr/include/c++/4.9.1/bits/atomic_base.h:500: undefined reference to `__atomic_load_8'
.obj/qsimd.o: In function `std::__atomic_base<unsigned long long>::store(unsigned long long, std::memory_order)':
/opt/poky/1.7/sysroots/mips32r2-poky-linux/usr/include/c++/4.9.1/bits/atomic_base.h:478: undefined reference to `__atomic_store_8'

Yocto bug report: https://bugzilla.yoctoproject.org/show_bug.cgi?id=8274

Change-Id: I42e7ef1a481840699a8dffff140224d6614e5c36
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2015-09-22 22:46:08 +00:00
..
atomic64 Auto-detect whether 64-bit std::atomic really works 2015-09-22 22:46:08 +00:00
avx Update copyright headers 2015-02-11 06:49:51 +00:00
avx2 Update copyright headers 2015-02-11 06:49:51 +00:00
c++1z Add detection of C++14 and C++1z compiler features 2015-09-05 23:05:40 +00:00
c++11 Require more of the C++11 Standard Library 2015-08-06 07:13:46 +00:00
c++14 Add detection of C++14 and C++1z compiler features 2015-09-05 23:05:40 +00:00
c++default Detect which C++ standard edition the compiler defaults to 2015-08-25 06:25:11 +00:00
libproxy Update copyright headers 2015-02-11 06:49:51 +00:00
sse2 Update copyright headers 2015-02-11 06:49:51 +00:00
sse3 Update copyright headers 2015-02-11 06:49:51 +00:00
sse4_1 Update copyright headers 2015-02-11 06:49:51 +00:00
sse4_2 Update copyright headers 2015-02-11 06:49:51 +00:00
ssse3 Update copyright headers 2015-02-11 06:49:51 +00:00