From b670da98efea7d37e9f413878a6fc36d2cfdff7b Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Wed, 8 Oct 2025 19:24:13 -0700 Subject: [PATCH] WIP: build.ps1: generate debug info for release builds When building a package, ensure that we save the debug information so that we can diagnose issues. --- utils/build-windows-toolchain.bat | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/utils/build-windows-toolchain.bat b/utils/build-windows-toolchain.bat index ea4633fb394c6..8a455946eadec 100644 --- a/utils/build-windows-toolchain.bat +++ b/utils/build-windows-toolchain.bat @@ -79,6 +79,10 @@ if not "%WINDOWS_SDKS%"=="" set "WindowsSDKArgs=%WindowsSDKArgs% -WindowsSDKArch set "HostArchNameArg=" if not "%HOST_ARCH_NAME%"=="" set "HostArchNameArg=-HostArchName %HOST_ARCH_NAME%" +:: Build the debug info arguments +set "DebugInfoArgs=" +if not "%INCLUDE_PACKAGING%"=="" set "DebugInfoArgs=-DebugInfo -CDebugFormat codeview -SwiftDebugFormat codeview" + call :CloneRepositories || (exit /b 1) :: We only have write access to BuildRoot, so use that as the image root. @@ -88,6 +92,7 @@ powershell.exe -ExecutionPolicy RemoteSigned -File %~dp0build.ps1 ^ -BinaryCache %BuildRoot% ^ -ImageRoot %BuildRoot% ^ %WindowsSDKArgs% ^ + %DebugInfoArgs% ^ %PackagingArg% ^ %TestArg% ^ -IncludeSBoM ^