Skip to content

Commit 9b4745c

Browse files
committed
[build-windows-toolchain] Unset SDKROOT first
... to prevent multiple SDKs detected by freshly built Swift compiler.
1 parent c0a7dfd commit 9b4745c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

utils/build-windows-toolchain.bat

+3
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ copy /y "%SourceRoot%\swift\stdlib\public\Platform\winsdk.modulemap" "%Universal
8080
copy /y "%SourceRoot%\swift\stdlib\public\Platform\vcruntime.modulemap" "%VCToolsInstallDir%\include\module.modulemap" || (exit /b)
8181
copy /y "%SourceRoot%\swift\stdlib\public\Platform\vcruntime.apinotes" "%VCToolsInstallDir%\include\vcruntime.apinotes" || (exit /b)
8282

83+
:: Unset SDKROOT
84+
set SDKROOT=
85+
8386
:: Build Toolchain
8487
cmake ^
8588
-B "%BuildRoot%\1" ^

0 commit comments

Comments
 (0)