We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1316eef commit 80120a6Copy full SHA for 80120a6
stdlib/cmake/modules/AddSwiftStdlib.cmake
@@ -265,7 +265,7 @@ function(_add_target_variant_c_compile_flags)
265
# uses a spin lock for this, so to get reasonable behavior we have to
266
# implement it ourselves using _InterlockedCompareExchange128.
267
# clang-cl requires us to enable the `cx16` feature to use this intrinsic.
268
- if(SWIFT_HOST_VARIANT_ARCH STREQUAL x86_64)
+ if(CFLAGS_ARCH STREQUAL x86_64)
269
if(SWIFT_COMPILER_IS_MSVC_LIKE)
270
list(APPEND result /clang:-mcx16)
271
else()
0 commit comments