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

CMake: add debug options to windows builds #834

Merged
merged 1 commit into from
Apr 6, 2022

Conversation

rgetz
Copy link
Contributor

@rgetz rgetz commented Apr 6, 2022

gcc and clang always build with '-g', enabling easier debugging, so
catch MSVC to the same.

This will create seperate program database (.pdb) files, which map
identifiers and statements in the project's source code to
corresponding identifiers and instructions in compiled apps.
These mapping files link the debugger to your source code, which
enables debugging.

Hopefully this will put a stop to those who want to build in windows
in debug mode (which is not possible, see #772)

This does not include the pdb files in the installers, so the only way
to get them is build locally.

Signed-off-by: Robin Getz robin.getz@analog.com

gcc and clang always build with '-g', enabling easier debugging, so
catch MSVC to the same.

This will create seperate program database (.pdb) files, which map
identifiers and statements in the project's source code to
corresponding identifiers and instructions in compiled apps.
These mapping files link the debugger to your source code, which
enables debugging.

Hopefully this will put a stop to those who want to build in windows
in debug mode (which is not possible, see #772)

This does not include the pdb files in the installers, so the only way
to get them is build locally.

Signed-off-by: Robin Getz <robin.getz@analog.com>
@rgetz rgetz force-pushed the rgetz-add-debug-to-win-builds branch from d0022e1 to 1102353 Compare April 6, 2022 14:55
@pcercuei pcercuei self-requested a review April 6, 2022 15:08
@rgetz rgetz merged commit 391f44a into master Apr 6, 2022
@rgetz rgetz deleted the rgetz-add-debug-to-win-builds branch April 6, 2022 17:09
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