Tracking issue for rustc-cdylib-link-arg
transitive warning
#9562
Labels
A-build-scripts
Area: build.rs scripts
A-linkage
Area: linker issues, dylib, cdylib, shared libraries, so
C-tracking-issue
Category: A tracking issue for something unstable.
S-needs-mentor
Status: Issue or feature is accepted, but needs a team member to commit to helping and reviewing.
S-waiting-on-feedback
Status: An implemented feature is waiting on community feedback for bugs or design concerns.
In the 1.50 release, there was an unintended change that the
cargo:rustc-cdylib-link-arg
build script instruction started passing arguments to transitive cdylib dependencies. Previously this was ignored. In the 1.54 release, a warning was added to indicate that this may be rejected in the future.If you see this warning, you are encouraged to change the way linker arguments are added. Only the build script of the package containing the cdylib should issue
cargo:rustc-cdylib-link-arg
in its build script. If there is common code for determining these flags that users may need, then an option is to have a build-dependency which provides that logic.The text was updated successfully, but these errors were encountered: