Skip to content

Commit

Permalink
tools: Tweak no-std.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Mar 15, 2024
1 parent df6a233 commit 6302b8d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/no-std.sh
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ if [[ -z "${is_custom_toolchain}" ]]; then
fi
rustc_target_list=$(rustc ${pre_args[@]+"${pre_args[@]}"} --print target-list)
rustc_version=$(rustc ${pre_args[@]+"${pre_args[@]}"} -Vv | grep 'release: ' | sed 's/release: //')
# target_dir=$(pwd)/target
nightly=''
if [[ "${rustc_version}" == *"nightly"* ]] || [[ "${rustc_version}" == *"dev"* ]]; then
nightly=1
Expand Down Expand Up @@ -265,10 +266,10 @@ run() {
# build_std=(-Z build-std="core,alloc")
# args+=(--features panic-unwind)
# target_rustflags+=" -C panic=unwind"
# CARGO_TARGET_DIR="../../target/panic-unwind" \
# CARGO_TARGET_DIR="${target_dir}/panic-unwind" \
# RUSTFLAGS="${target_rustflags}" \
# x_cargo "${args[@]}" ${build_std[@]+"${build_std[@]}"} "$@" -- "${test_args[@]}" <<<"stdin"
# CARGO_TARGET_DIR="../../target/panic-unwind" \
# CARGO_TARGET_DIR="${target_dir}/panic-unwind" \
# RUSTFLAGS="${target_rustflags}" \
# x_cargo "${args[@]}" ${build_std[@]+"${build_std[@]}"} --release "$@" -- "${test_args[@]}" <<<"stdin"
# fi
Expand Down

0 comments on commit 6302b8d

Please sign in to comment.