rp-rs / rp2040-project-template

A basic rp2040-hal project with blinky and rtt logging example code. With this you can quickly get started on a new rp2040 project
480 stars 98 forks source link

Use `linker = ...` #82

Open jonathanpallant opened 1 month ago

jonathanpallant commented 1 month ago

As per https://github.com/knurling-rs/flip-link/pull/92, you can now use linker = "..." rather than specifying a linker using rust flags.

jannic commented 1 month ago

Is there also a way to specify link-arg other than rustflags? Otherwise, we won't gain much by moving the linker specification from rustflags to the new method.

jonathanpallant commented 1 month ago

Someone could run RUSTFLAGS='-Tcustom.x' cargo build without losing the choice of linker. That's about all it gets you.