fix: Update cargo's config to use the new linker parameter (#100)

Since rust v1.74, the linker can be selected without using rustflags.
This plays nicer with `RUSTFLAGS`.
This commit is contained in:
Wilfried Chauveau 2025-05-16 02:23:27 +01:00 committed by GitHub
parent 2e15359a72
commit 55928a6225
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -5,8 +5,8 @@
runner = "probe-rs run --chip RP2040 --protocol swd" runner = "probe-rs run --chip RP2040 --protocol swd"
# runner = "elf2uf2-rs -d" # runner = "elf2uf2-rs -d"
linker = "flip-link"
rustflags = [ rustflags = [
"-C", "linker=flip-link",
"-C", "link-arg=--nmagic", "-C", "link-arg=--nmagic",
"-C", "link-arg=-Tlink.x", "-C", "link-arg=-Tlink.x",
"-C", "link-arg=-Tdefmt.x", "-C", "link-arg=-Tdefmt.x",

View File

@ -15,8 +15,8 @@
runner = "{{ flash_method_custom }}" runner = "{{ flash_method_custom }}"
{%- endif -%} {%- endif -%}
{%- endcase %} {%- endcase %}
linker = "flip-link"
rustflags = [ rustflags = [
"-C", "linker=flip-link",
"-C", "link-arg=--nmagic", "-C", "link-arg=--nmagic",
"-C", "link-arg=-Tlink.x", "-C", "link-arg=-Tlink.x",
"-C", "link-arg=-Tdefmt.x", "-C", "link-arg=-Tdefmt.x",