From 42f350b682a8f4c4097c3d64c8582e18a67d4ed4 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Wed, 18 Sep 2019 17:47:18 -0700 Subject: [PATCH] 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. --- utils/build-script-impl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/utils/build-script-impl b/utils/build-script-impl index 5758487f1ba6e..ec6e334583292 100755 --- a/utils/build-script-impl +++ b/utils/build-script-impl @@ -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="" ;;