Skip to content

Commit a0a0376

Browse files
committed
Build: Fix source indexing
x64 version of pdbstr doesn't work (because of missing __CxxFrameHandler4 on Windows Server 2019). Fortunately it seems that x86 version works well, so we can use that one.
1 parent 9606e11 commit a0a0376

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Src/Setup/BuildBinaries.bat

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,18 +114,26 @@ copy /B Output\x64\StartMenuHelper64.dll Output\PDB64 > nul
114114

115115
REM ********* Source Index PDBs
116116

117-
set PDBSTR_PATH="C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\srcsrv\pdbstr.exe"
117+
set PDBSTR_PATH="C:\Program Files (x86)\Windows Kits\10\Debuggers\x86\srcsrv\pdbstr.exe"
118118

119119
if exist %PDBSTR_PATH% (
120120
echo --- Adding source index to PDBs
121121
call CreateSourceIndex.bat ..\.. > Output\pdbstr.txt
122122

123123
for %%f in (Output\PDB32\*.pdb) do (
124124
%PDBSTR_PATH% -w -p:%%f -s:srcsrv -i:Output\pdbstr.txt
125+
if not ERRORLEVEL 0 (
126+
echo Error adding source index to PDB
127+
exit /b 1
128+
)
125129
)
126130

127131
for %%f in (Output\PDB64\*.pdb) do (
128132
%PDBSTR_PATH% -w -p:%%f -s:srcsrv -i:Output\pdbstr.txt
133+
if not ERRORLEVEL 0 (
134+
echo Error adding source index to PDB
135+
exit /b 1
136+
)
129137
)
130138
)
131139

0 commit comments

Comments
 (0)