diff options
author | Sitsofe Wheeler <sitsofe@yahoo.com> | 2020-08-21 20:35:03 +0100 |
---|---|---|
committer | Sitsofe Wheeler <sitsofe@yahoo.com> | 2020-09-12 11:54:18 +0100 |
commit | 76bc30ca118fda404f19c17d97bafdba9779c4c2 (patch) | |
tree | 6a810b06d172a0a384ada908642b7e9a5e84074e /os/windows/dobuild.cmd | |
parent | 16d40a15783f9181d64082fc00a970dff485798f (diff) | |
download | fio-76bc30ca118fda404f19c17d97bafdba9779c4c2.tar.gz fio-76bc30ca118fda404f19c17d97bafdba9779c4c2.tar.bz2 |
configure/Makefile: add option to generate pdb symbols
Recent versions of Windows clang and LLVM's lld have the ability to
build Windows PDB symbols for debugging so add an explicit option to
test for support and use it so.
Signed-off-by: Sitsofe Wheeler <sitsofe@yahoo.com>
Diffstat (limited to 'os/windows/dobuild.cmd')
-rw-r--r-- | os/windows/dobuild.cmd | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/os/windows/dobuild.cmd b/os/windows/dobuild.cmd index d06a2afa..08df3e87 100644 --- a/os/windows/dobuild.cmd +++ b/os/windows/dobuild.cmd @@ -34,7 +34,13 @@ if defined SIGN_FIO ( signtool sign /as /n "%SIGNING_CN%" /tr http://timestamp.digicert.com /td sha256 /fd sha256 ..\..\t\*.exe
)
-"%WIX%bin\candle" -nologo -arch %FIO_ARCH% -dFioVersionNumbers="%FIO_VERSION_NUMBERS%" install.wxs
+if exist ..\..\fio.pdb (
+ set FIO_PDB=true
+) else (
+ set FIO_PDB=false
+)
+
+"%WIX%bin\candle" -nologo -arch %FIO_ARCH% -dFioVersionNumbers="%FIO_VERSION_NUMBERS%" -dFioPDB="%FIO_PDB%" install.wxs
@if ERRORLEVEL 1 goto end
"%WIX%bin\candle" -nologo -arch %FIO_ARCH% examples.wxs
@if ERRORLEVEL 1 goto end
@@ -43,4 +49,4 @@ if defined SIGN_FIO ( if defined SIGN_FIO (
signtool sign /n "%SIGNING_CN%" /tr http://timestamp.digicert.com /td sha256 /fd sha256 %FIO_VERSION%-%FIO_ARCH%.msi
-)
\ No newline at end of file +)
|