fix: move build-std from .cargo/config.toml to Justfile (Xtensa only)
build-std=core,alloc was globally enabled in .cargo/config.toml, which conflicted with cargo-fuzz's own -Zbuild-std, causing duplicate core errors. Now only passed for Xtensa targets via the Justfile.
This commit is contained in:
203 files changed
+2436
-5
No files matched your search
@@ -74,9 +74,9 @@ _cargo board cmd extra_args="":
|
||||
case "$target" in xtensa-*) \
|
||||
just _require_esp_toolchain; \
|
||||
[ -f "$HOME/export-esp.sh" ] && . "$HOME/export-esp.sh"; \
|
||||
env="RUSTC=$(rustup which rustc --toolchain esp)"; extra="+nightly";; \
|
||||
env="RUSTC=$(rustup which rustc --toolchain esp)"; extra="+nightly"; buildstd="-Zbuild-std=core,alloc";; \
|
||||
esac; \
|
||||
eval $env cargo $extra {{cmd}} --target "$target" --features "$feat" {{extra_args}}
|
||||
eval $env cargo $extra {{cmd}} --target "$target" --features "$feat" $buildstd {{extra_args}}
|
||||
|
||||
# Check if a board's toolchain is available (silent, for build-all/check-all skipping)
|
||||
[private]
|
||||
|
||||
Reference in new issue
Block a user