utils: pass CMAKE_Swift_COMPILER

This is the variable that the official CMake Swift support uses.  Define
this so that we can be forward compatible with CMake 3.15.
This commit is contained in:
Saleem Abdulrasool
2019-09-18 17:47:18 -07:00
parent d77ed7a9f2
commit 42f350b682

View File

@@ -3405,6 +3405,10 @@ for host in "${ALL_HOSTS[@]}"; do
continue
;;
*)
cmake_options=(
${cmake_options[@]}
-DCMAKE_Swift_COMPILER:PATH="$(build_directory_bin ${LOCAL_HOST} swift)/swiftc"
)
results_targets=( "test" )
executable_target=""
;;