Skip to content

Commit

Permalink
Correctly name PDB file
Browse files Browse the repository at this point in the history
After the switch to ninja, the PDB file was named th06e.exe.pdb, which
broke a lot of tools that assume the debug file is in th06e.pdb. This
commit fixes it by passing the correct name to link.exe.
  • Loading branch information
roblabla committed Dec 21, 2023
1 parent dbaad95 commit db22a6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ def configure(build_type):
writer.rule("as", "$gas -o $out $in")
writer.rule("rc", "$rc /fo $out $in")
writer.rule(
"link", "$link /out:$out $link_flags /debug /pdb:$out.pdb $link_libs $in"
"link",
"""cmd /c "for %F in ("$out") do $link /out:%F $link_flags /debug /pdb:%~pdnF.pdb $link_libs $in" """,
)
writer.rule(
"copyicon",
Expand Down

0 comments on commit db22a6d

Please sign in to comment.