27 lines
670 B
TOML
27 lines
670 B
TOML
[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"]
|