From 0d4861fdd3683906c319216b4d0d5cc10cf8d71e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Fri, 17 May 2019 15:57:01 +0300 Subject: [PATCH] readme: Document the new implicit pdb output file naming --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index af6ee9e..10c84b5 100644 --- a/README.md +++ b/README.md @@ -102,7 +102,10 @@ changes: - Add `-gcodeview` to the compilation commands (e.g. in `wrappers/clang-target-wrapper.sh`), together with using `-g` as usual to enable debug info in general. -- Add `-Wl,-pdb,module.pdb` to linking commands. +- Add `-Wl,-pdb=` to linking commands. This creates a PDB file at the same + location as the output EXE/DLL, but with a PDB extension. (By passing + `-Wl,-pdb=module.pdb` or `-Wl,-pdb,module.pdb` one can explicitly specify + the name of the output PDB file.) Even though LLVM supports this, there are a few caveats with using it when building in MinGW mode: