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:
parent
2e15359a72
commit
55928a6225
@ -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",
|
||||||
|
|||||||
@ -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",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user