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.
2 parents f66e7a5 + 40bf17c commit 0d8e005Copy full SHA for 0d8e005
Runtimes/Core/cmake/modules/CompilerSettings.cmake
@@ -49,6 +49,8 @@ if(NOT HAVE_SWIFT_ASYNC_CALL)
49
endif()
50
51
check_compiler_flag(CXX "-mcx16" HAVE_CXX_MCX16)
52
-if(HAVE_CXX_MCX16)
+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>)
56
0 commit comments