From 37c36268ba56ae7e5d5ee6fb308ca161919030a2 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Mon, 16 Jun 2025 09:17:35 -0700 Subject: [PATCH] utils: pass along Foundation and XCTest to TSC This is required to build the TSCSupport module for SPM's consumption. --- utils/build.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/utils/build.ps1 b/utils/build.ps1 index d5c18a5b9b28c..7e1945d749735 100644 --- a/utils/build.ps1 +++ b/utils/build.ps1 @@ -2780,7 +2780,11 @@ function Build-ToolsSupportCore([Hashtable] $Platform) { -SwiftSDK (Get-SwiftSDK Windows) ` -Defines @{ BUILD_SHARED_LIBS = "YES"; + CMAKE_FIND_PACKAGE_PREFER_CONFIG = "YES"; CMAKE_STATIC_LIBRARY_PREFIX_Swift = "lib"; + + Foundation_DIR = $(Get-ProjectCMakeModules $Platform DynamicFoundation); + XCTest_DIR = (Get-ProjectCMakeModules $Platform XCTest); } }