rustphone/esp/.cargo/config.old.toml

28 lines
670 B
TOML
Raw Normal View History

2023-10-07 11:33:14 +00:00
[build]
target = "xtensa-esp32-none-elf"
[target.'cfg(target_arch = "xtensa")']
#runner = "espflash flash --monitor --flash-size 4mb --chip esp32 --partition-table partition.csv --flash-freq 40mhz --flash-mode qio"
runner = "espflash flash --monitor --flash-size 4mb --chip esp32"
rustflags = [
# Optimization
"-Z", "location-detail=none",
"-C", "link-args=-Wl,--sort-section=alignment",
"-C", "inline-threshold=7",
# GNU LD
"-C", "link-arg=-Wl,-Tlinkall.x",
"-C", "link-arg=-nostartfiles",
# LLD
# "-C", "link-arg=-Tlinkall.x",
# "-C", "linker=rust-lld",
]
[env]
ESP_LOGLEVEL = "info"
[unstable]
build-std = ["core", "panic_abort"]
#build-std = ["core"]