Search code examples
c++sourcelink

Is it possible to use SourceLink feature "EmbedAllSources" in a C++ build?


SourceLink supports feature "EmbedAllSources". It is well documented how to use this feature from a dotnet build. Is it possible to use the feature for a C++ build? How would I go about doing that?


Solution

  • From GitHub:

    The only feature currently supported is mapping of source files to the source repository that is used by the debugger to find source files when stepping into the code. Source embedding and embedding commit SHA and repository URL information in the native binary are not supported for native projects.

    "Native" means C and C++, so no.