Skip to content

Commit

Permalink
fix(scripts): Set target.'cfg(all())'.rustflags in cargo-simtest
Browse files Browse the repository at this point in the history
e need to use target.'cfg(all())'.rustflags instead of build.rustflags
because the latter are ignored if any target flags are set.
  • Loading branch information
jkrvivian committed Oct 22, 2024
1 parent 7f5cc37 commit 5426c63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/simtest/cargo-simtest
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ root_dir=$(git rev-parse --show-toplevel)
export SIMTEST_STATIC_INIT_MOVE=$root_dir"/examples/move/basics"

cargo ${CARGO_COMMAND[@]} \
--config "build.rustflags = [$RUST_FLAGS]" \
--config "target.'cfg(all())'.rustflags = [$RUST_FLAGS]" \
"${cargo_patch_args[@]}" \
"$@"

Expand Down

0 comments on commit 5426c63

Please sign in to comment.