Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions Runtimes/Core/cmake/modules/CompilerSettings.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@ if(NOT HAVE_SWIFT_ASYNC_CALL)
message(SEND_ERROR "CXX Compiler must support Swift async calling conventions")
endif()

check_compiler_flag(CXX "-mcx16" HAVE_CXX_MCX16)
if(HAVE_CXX_MCX16 AND
(CMAKE_CXX_COMPILER_ARCHITECTURE_ID MATCHES "(X86)|(X64)" OR
CMAKE_SYSTEM_PROCESSOR MATCHES "(i[3-6]86)|(x86_64)|(amd64)|(AMD64)"))
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>)
endif()
endif()