-
Notifications
You must be signed in to change notification settings - Fork 123
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
Support for C++ libs #580
Comments
This should be possible today, but I'm not sure if it works out-of-the box with just including the Source Link nuget packages in your projects. You might need some tweaking of the build. The linker supports embedding source link record in each static lib's PDB and then preservers all these records in the final linked binary. |
I test shows few problems:-
So currently the only option would appear to be to create source link files for each lib and then ship them with the libs. They would then need to be combined in the final link (assuming the /sourcelink switch cannot be used multiple times). Ideally the lib tool would be updated to support /sourcelink |
Any news about this @tmat ? |
Am also interested in using SourceLink with static libraries |
Currently C++ support appears to be limited to DLL and EXE targets.
What I would like to see is sourcelink information being generated for static lib targets and then when the final link occurs into a executable the resulting pdb contains the combined sourcelink information for all the static libs that went into building the executable.
I am not sure if this would require an update to link.exe in order to support this scenario
The text was updated successfully, but these errors were encountered: