Some targets implement 4-byte atomic related functions without calling
into libatomic, while for 8-byte atomics they need to make a function
call. By using a long long int we can identify such cases.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
What happens on platforms that don't need the lib to make std::atomic<long long int> x; work?
Comment Actions
Then the first check succeeds, and they don't get -latomic added to the link line (HAVE_CXX_ATOMICS_WITHOUT_LIB gets set)