mirror of
https://github.com/apple/swift.git
synced 2026-06-20 15:42:51 +02:00
70a32af57b
Change the standalone SDK overlay build and unified build lipo detection identical.
8 lines
292 B
CMake
8 lines
292 B
CMake
function(find_toolchain_tool result_var_name toolchain tool)
|
|
execute_process(
|
|
COMMAND "xcrun" "--toolchain" "${toolchain}" "--find" "${tool}"
|
|
OUTPUT_VARIABLE tool_path
|
|
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
|
set("${result_var_name}" "${tool_path}" PARENT_SCOPE)
|
|
endfunction()
|