cxx icon indicating copy to clipboard operation
cxx copied to clipboard

Linker fails if the name of the library passed to `.compile` is the same as an external static library

Open Enduriel opened this issue 1 year ago • 0 comments

This was really difficult to debug for me as a complete newb to external rust bindings, though in hindsight it makes perfect sense. I would adjust part documentation for the Build::compile function from must be unique across all compile invocations made by the same build script. to must be unique across all compile invocations made by the same build script and the names of any statically linked libraries

I wanted to make a PR for this but I have no idea where the documentation is actually written since a ctrl+f on 'must be unique' in the cxx repo returns nothing.

Enduriel avatar Sep 17 '24 11:09 Enduriel