Skip to content

Commit 2ba4e7f

Browse files
authored
utils: pass along Foundation and XCTest to TSC (#82267)
This is required to build the TSCSupport module for SPM's consumption.
1 parent 9c2c6c9 commit 2ba4e7f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

utils/build.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2780,7 +2780,11 @@ function Build-ToolsSupportCore([Hashtable] $Platform) {
27802780
-SwiftSDK (Get-SwiftSDK Windows) `
27812781
-Defines @{
27822782
BUILD_SHARED_LIBS = "YES";
2783+
CMAKE_FIND_PACKAGE_PREFER_CONFIG = "YES";
27832784
CMAKE_STATIC_LIBRARY_PREFIX_Swift = "lib";
2785+
2786+
Foundation_DIR = $(Get-ProjectCMakeModules $Platform DynamicFoundation);
2787+
XCTest_DIR = (Get-ProjectCMakeModules $Platform XCTest);
27842788
}
27852789
}
27862790

0 commit comments

Comments
 (0)