Skip to content

Commit 37c593b

Browse files
committed
utils: fix debug info generation for the standard library
When we build the standard library, we use the just built compilers. However, we would not pass the necessary flags to the linker to generate the debug information (PDBs) which would then make debugging more challenging than it already is.
1 parent a74eb6b commit 37c593b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

utils/build.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,7 @@ function Build-CMakeProject {
578578

579579
$CFlags = @("/GS-", "/Gw", "/Gy", "/Oi", "/Oy", "/Zc:inline")
580580
if ($UseMSVCCompilers.Contains("C") -Or $UseMSVCCompilers.Contains("CXX") -Or
581+
$UseBuiltCompilers.Contains("C") -Or $UseBuiltCompilers.Contains("CXX") -Or
581582
$UsePinnedCompilers.Contains("C") -Or $UsePinnedCompilers.Contains("CXX")) {
582583
if ($DebugInfo) {
583584
$CFlags += if ($EnableCaching) { "/Z7" } else { "/Zi" }

0 commit comments

Comments
 (0)