esp-rs / esp-template

A minimal esp-hal application template for use with cargo-generate
Apache License 2.0
143 stars 29 forks source link

Using env var in .cargo/config.toml #126

Closed Real-YuZhe closed 11 months ago

Real-YuZhe commented 11 months ago

Hi, any way I can use env var in config.toml?

linker = "/home/ci/.espressif/tools/xtensa-esp32-elf/esp-2022r1-11.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc"

and I have export CROSS_CIMPILE=/home/ci/.espressif/tools/xtensa-esp32-elf/esp-2022r1-11.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-

I tryied linker = "${CROSS_COMPILE}gcc" but didn't work? Any adea about how to fix it?

Real-YuZhe commented 11 months ago

@ teo swee ann Any one knows?

bjoernQ commented 11 months ago

I don't think it's currently supported by Cargo: https://github.com/rust-lang/cargo/issues/10789