-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
cinstall doesn't install PDB debug symbol files with MSVC #279
Labels
Comments
I was looking at fixing this, but it looks like cargo work might be needed to get this working correctly, because there doesn't seem to be a 'corresponding PDB' for built targets, so that would need to be fixed first. |
Open an issue on cargo and link this one so once it is solved we won't forget about it :) |
Looks like I was wrong, cargo does build |
amyspark
added a commit
to amyspark/cargo-c
that referenced
this issue
May 4, 2024
amyspark
added a commit
to amyspark/cargo-c
that referenced
this issue
May 4, 2024
Merged
amyspark
added a commit
to amyspark/cargo-c
that referenced
this issue
May 9, 2024
amyspark
added a commit
to amyspark/cargo-c
that referenced
this issue
May 28, 2024
amyspark
added a commit
to amyspark/cargo-c
that referenced
this issue
May 29, 2024
lu-zero
pushed a commit
that referenced
this issue
May 29, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
With MinGW, the debug information is embedded in the object files, but with MSVC it is split out into PDB files. These need to be installed alongside the object files to get symbols in the Visual Studio debugger. Some references to how meson handles this:
https://github.com/mesonbuild/meson/blob/a692395186b9a74817a584444418901da1d7306f/mesonbuild/backend/ninjabackend.py#L2427-L2474
https://github.com/mesonbuild/meson/blob/a692395186b9a74817a584444418901da1d7306f/mesonbuild/backend/ninjabackend.py#L3069-L3074
Compile args:
https://github.com/mesonbuild/meson/blob/a692395186b9a74817a584444418901da1d7306f/mesonbuild/compilers/mixins/visualstudio.py#L304-L308
https://github.com/mesonbuild/meson/blob/a692395186b9a74817a584444418901da1d7306f/mesonbuild/compilers/mixins/visualstudio.py#L410-L420
Linker args:
https://github.com/mesonbuild/meson/blob/a692395186b9a74817a584444418901da1d7306f/mesonbuild/linkers/linkers.py#L1225-L1230
tl;dr: if you install foo.dll you must also install foo.pdb next to it. Same with foo.exe. You can ignore static libraries.
The text was updated successfully, but these errors were encountered: