From 54ca8963f10370f7b5ca87bbf3629927ce7748d4 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Wed, 3 Sep 2025 16:28:05 -0700 Subject: [PATCH] build.ps1: clean up SDKROOT references Use the pre-computed value rather than compute the value twice. --- utils/build.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/build.ps1 b/utils/build.ps1 index c7d3009381c05..ac349c58b5bea 100644 --- a/utils/build.ps1 +++ b/utils/build.ps1 @@ -3618,7 +3618,7 @@ function Build-IndexStoreDB([Hashtable] $Platform) { -Bin (Get-ProjectBinaryCache $Platform IndexStoreDB) ` -Platform $Platform ` -UseBuiltCompilers C,CXX,Swift ` - -SwiftSDK (Get-SwiftSDK $Platform.OS) ` + -SwiftSDK $SDKROOT ` -BuildTargets default ` -Defines @{ BUILD_SHARED_LIBS = "NO"; @@ -3800,7 +3800,7 @@ function Build-Inspect([Hashtable] $Platform) { -InstallTo $InstallPath ` -Platform $Platform ` -UseBuiltCompilers C,CXX,Swift ` - -SwiftSDK (Get-SwiftSDK $Platform.OS) ` + -SwiftSDK $SDKROOT ` -Defines @{ CMAKE_Swift_FLAGS = @( "-Xcc", "-I$SDKROOT\usr\include",