You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
EDIT: I think compile-time derivation of the link requirements is intractible. It would force CMake to re-determine the graph at build time, which is almost certainly not possible. Instead, we should just emit a warning if we notice that rustc lists a static library dependency that has not been listed in the CMake file.
Things to do:
Capture the stdlib static library dependencies on all supported platforms
Add a NO_STD option (or derive this from the crate, if possible) to add_crate that opts out of linking against those static libraries
If Cargo allowed this to be specified in the TOML file, could be automatically derived
Capture the results of rustc --print=native-static-libs
The text was updated successfully, but these errors were encountered:
AndrewGaspar
changed the title
Derive INTERFACE_LINK_LIBRARIES from cargo rustc -- --print=native-static-libs
Emit warning if rustc --print=native-static-libs reports a library dependency that has not been listed statically
Mar 13, 2018
EDIT: I think compile-time derivation of the link requirements is intractible. It would force CMake to re-determine the graph at build time, which is almost certainly not possible. Instead, we should just emit a warning if we notice that rustc lists a static library dependency that has not been listed in the CMake file.
Things to do:
rustc --print=native-static-libs
The text was updated successfully, but these errors were encountered: