This allows for testing without SPM on non-Darwin targets. We
explicitly exclude the manifest in SPM based builds because we would
like to use the automatic test discovery functionality from SPM.
SPM’s --generate-linuxmain feature doesn’t support conditionally compiled tests.
To run tests on non-Darwin platforms, use `swift test --enable-test-discovery`.
Linux on x86_64 unfortunately disables support for cmpxchg16 by default, making double-wide atomic operations fall back to using locks. We cannot currently override this on the package level, so stop providing double-wide atomics in this configuration by default.
To enable codegen support for double-wide atomics on Linux/x86_64, compile the package with `-Xcc -mcx16 -Xswiftc -DENABLE_DOUBLEWIDE_ATOMICS`.
This prevents an “unable to typecheck in reasonable time” error when compiling the test registry.
1612 tests under one test case is currently too many for swift-corelibs-xctest.
While we’re here, add explicit test cases for UnsafeRawPointer and Optional<UnsafeRawPointer>.