Consistently use the --pdb= form in scripts

Stop using the separate argument form (-Wl,-pdb,<filename>), and
prefer using the option form with an implicit output name.
This commit is contained in:
Martin Storsjö committed 2022-10-12 15:28:45 +03:00
1 parent 21d1cf6f18
commit 22b1ff128b
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -45,7 +45,7 @@ mkdir -p $TEST_DIR
$CXX hello-exception.cpp -o $TEST_DIR/hello-exception-dwarf.exe -g
# Build an executable with PDB debug info
$CXX hello-exception.cpp -o $TEST_DIR/hello-exception-pdb.exe -g -gcodeview -Wl,-pdb=
$CXX hello-exception.cpp -o $TEST_DIR/hello-exception-pdb.exe -g -gcodeview -Wl,--pdb=
# Strip the executable that uses pdb; the crt startup files and mingw static
# library object files have dwarf debug info, so the binary has got a bit of
# both, and lldb would choose to use the dwarf parts unless we strip it.