vcpkg/ports/botan/embed-debug-info.patch
Nico Rieck e407f1b99e
[botan] Fix debug info (#22911)
* [botan] Fix debug info

- Embed debug info into object files.
- Enable debug info for release builds.
- Pass-through C++ build flags.

Fixes #12088

* Fix version database.

Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
2022-02-04 01:16:11 -08:00

18 lines
459 B
Diff

diff --git a/src/build-data/cc/msvc.txt b/src/build-data/cc/msvc.txt
index 2306a4485..977e2e958 100644
--- a/src/build-data/cc/msvc.txt
+++ b/src/build-data/cc/msvc.txt
@@ -17,10 +17,10 @@ optimization_flags "/O2 /Oi"
size_optimization_flags "/O1 /Os"
# for debug info in the object file:
-#debug_info_flags "/Z7"
+debug_info_flags "/Z7"
# for using a PDB file:
-debug_info_flags "/Zi /FS"
+#debug_info_flags "/Zi /FS"
preproc_flags "/nologo /EP"