File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Runtimes/Core/cmake/modules Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -48,9 +48,10 @@ if(NOT HAVE_SWIFT_ASYNC_CALL)
4848 message (SEND_ERROR "CXX Compiler must support Swift async calling conventions" )
4949endif ()
5050
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>)
51+ if (CMAKE_CXX_COMPILER_ARCHITECTURE_ID MATCHES "(x86)|(x64)" OR
52+ CMAKE_SYSTEM_PROCESSOR MATCHES "(i[3-6]86)|(x86_64)|(amd64)|(AMD64)" )
53+ check_compiler_flag(CXX "-mcx16" HAVE_CXX_MCX16)
54+ if (HAVE_CXX_MCX16)
55+ add_compile_options ($<$<COMPILE_LANGUAGE:CXX>:-mcx16>)
56+ endif ()
5657endif ()
You can’t perform that action at this time.
0 commit comments