Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example doesn't work. #1

Open
hydra opened this issue Sep 15, 2021 · 0 comments
Open

Example doesn't work. #1

hydra opened this issue Sep 15, 2021 · 0 comments

Comments

@hydra
Copy link

hydra commented Sep 15, 2021

cargo 1.56.0-nightly (18751dd3f 2021-09-01)

These are supposed to build, and do:

D:\Users\Hydra\Documents\dev\playground\rust\rust-extra-link-arg-test>cargo +nightly -Zextra-link-arg build -p attempt-linker --target thumbv7m-none-eabi
warning: flag `-Z extra-link-arg` has been stabilized in the 1.56 release, and is no longer necessary
  Additional linker arguments are now supported without passing this flag.

   Compiling lib-maybe-link v0.1.0 (D:\Users\Hydra\Documents\dev\playground\rust\rust-extra-link-arg-test\lib-maybe-link)
   Compiling attempt-linker v0.1.0 (D:\Users\Hydra\Documents\dev\playground\rust\rust-extra-link-arg-test\attempt-linker)
    Finished dev [unoptimized + debuginfo] target(s) in 0.51s

Should fail, but doesn't:

D:\Users\Hydra\Documents\dev\playground\rust\rust-extra-link-arg-test>cargo +nightly -Zextra-link-arg build -p attempt-linker --target thumbv7m-none-eabi
warning: flag `-Z extra-link-arg` has been stabilized in the 1.56 release, and is no longer necessary
  Additional linker arguments are now supported without passing this flag.

    Finished dev [unoptimized + debuginfo] target(s) in 0.01s

Does the build.rs script need to be updated based on the final implementation in rust-lang/cargo#8441 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant