Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable PDB generation on Windows build #2294

Merged
merged 2 commits into from
Jun 25, 2020
Merged

Conversation

fujimotos
Copy link
Member

Sean Fausett pointed out that the current Windows release does
not include a debug symbol file. This makes it hard for our
users to analyze a crash dump.

This commit enables the PDB generation, and teaches CMake to
include the symbol file into the release distribution.

Sean Fausett pointed out that the current Windows release does
not include a debug symbol file. This makes it hard for our
users to analyze a crash dump.

This commit enables the PDB generation, and teaches CMake to
include the symbol file into the release distribution.

    td-agent-bit-1.5.0-win32/bin/
     - fluent-bit.dll
     - fluent-bit.exe
     - fluent-bit.pdb

Signed-off-by: Fujimoto Seiji <[email protected]>
CMake creates an enormous number of files. Due to this, the
Windows build on CI is exceptionally slow, in particular,
with Visual Studio project files.

We can mitigate the slowness by using NMake instead.

  BEFORE

    Platform: Win32 ...... 16 min 16 sec
    Platform: x64   ...... 16 min 47 sec

  AFTER

    Platform: Win32 ......  8 min 6 sec
    Platform: x64   ......  7 min 4 sec

Signed-off-by: Fujimoto Seiji <[email protected]>
@fujimotos
Copy link
Member Author

Note: We used this PDB file in the investigation of #2251. It did point out
the correct root cause of a memory crash bug, so was helpful.

I believe it deserves well to be included in the future releases.

@edsiper edsiper merged commit ad0d67a into fluent:master Jun 25, 2020
@edsiper
Copy link
Member

edsiper commented Jun 25, 2020

thanks

@fujimotos fujimotos deleted the sf/win32-build branch June 26, 2020 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants