esp-rs / esp-idf-template

A "Hello, world!" template of a Rust binary crate for the ESP-IDF framework.
380 stars 45 forks source link

Assignment clash to rustflags with espidfver=mainline and mcu=esp32-c3 #66

Closed faulesocke closed 1 year ago

faulesocke commented 1 year ago

When combining these two options, in .cargo/config.toml the second rustflags = assignment in https://github.com/esp-rs/esp-idf-template/blob/master/cargo/.cargo/config.toml#L27 overrides the first assignment in line 7, causing it to be ignored. The issue can be fixed by adding the contents of the first assignment as two items to the list of the second assignment.

ivmarkov commented 1 year ago

Thanks for reporting! Fixed with https://github.com/esp-rs/esp-idf-template/commit/d7799f7539e7c2e4993a401dccbd898f06dba6ff