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 3ec17e0 commit dc71116Copy full SHA for dc71116
CMakeLists.txt
@@ -77,7 +77,8 @@ if("${SWIFT_HOST_MODULE_TRIPLE}" STREQUAL "")
77
message(FATAL_ERROR "Unrecognized architecture for Windows host")
78
endif()
79
else()
80
- message(FATAL_ERROR "Host module triple required")
+ execute_process(COMMAND ${CMAKE_Swift_COMPILER} -print-target-info OUTPUT_VARIABLE target_info)
81
+ string(JSON SWIFT_HOST_MODULE_TRIPLE GET ${target_info} target moduleTriple)
82
83
84
message(STATUS "Module triple: ${SWIFT_HOST_MODULE_TRIPLE}")
0 commit comments