File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Runtimes/Core/cmake/modules Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,14 @@ set(module_triple_command "${CMAKE_Swift_COMPILER}" -print-target-info)
1515if (CMAKE_Swift_COMPILER_TARGET)
1616 list (APPEND module_triple_command -target ${CMAKE_Swift_COMPILER_TARGET} )
1717endif ()
18- execute_process (COMMAND ${module_triple_command} OUTPUT_VARIABLE target_info_json)
18+ execute_process (COMMAND ${module_triple_command}
19+ OUTPUT_VARIABLE target_info_json
20+ ERROR_VARIABLE stderr
21+ RESULT_VARIABLE ec)
22+ if (ec)
23+ message (FATAL_ERROR "'${module_triple_command} ' returned non-zero exit code ${ec} " )
24+ message (CONFIGURE_LOG "Error Output: ${stderr} " )
25+ endif ()
1926message (CONFIGURE_LOG "Swift target info: ${module_triple_command} \n "
2027"${target_info_json} " )
2128
You can’t perform that action at this time.
0 commit comments