We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0d66f84 + c360474 commit 25369aeCopy full SHA for 25369ae
Runtimes/Core/cmake/modules/CompilerSettings.cmake
@@ -48,9 +48,10 @@ if(NOT HAVE_SWIFT_ASYNC_CALL)
48
message(SEND_ERROR "CXX Compiler must support Swift async calling conventions")
49
endif()
50
51
-check_compiler_flag(CXX "-mcx16" HAVE_CXX_MCX16)
52
-if(HAVE_CXX_MCX16 AND
53
- (CMAKE_CXX_COMPILER_ARCHITECTURE_ID MATCHES "(X86)|(X64)" OR
54
- CMAKE_SYSTEM_PROCESSOR MATCHES "(i[3-6]86)|(x86_64)|(amd64)|(AMD64)"))
55
- add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-mcx16>)
+if(CMAKE_CXX_COMPILER_ARCHITECTURE_ID MATCHES "(x86)|(x64)" OR
+ CMAKE_SYSTEM_PROCESSOR MATCHES "(i[3-6]86)|(x86_64)|(amd64)|(AMD64)")
+ check_compiler_flag(CXX "-mcx16" HAVE_CXX_MCX16)
+ if(HAVE_CXX_MCX16)
+ add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-mcx16>)
56
+ endif()
57
0 commit comments