-
-
Notifications
You must be signed in to change notification settings - Fork 125
Open
Description
Currently, corrosion hardcodes the libraries required by Rust static libs (OS-dependent).
This list may not be always up-to-date and cover all required libraries, since the exact list may change between different rust versions, and additional libraries may be added by #[link]
attributes in user code or from build scripts!
Getting this information requires actually building the crate (with --print=native-static-libs
) and all its dependencies.
Probably the only way to pass these dependencies from the rustc output at build-time to the CMake linker command line would be by saving the required arguments to a response file, which clang/gcc support loading via @file
. I think MSVC also has such an option.
Metadata
Metadata
Assignees
Labels
No labels