Skip to content

Commit b71fea7

Browse files
committed
just respect existing RUSTFLAGS instead of providing another override
1 parent 0790f75 commit b71fea7

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

ci.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -euo pipefail
44
# Determine configuration
55
export RUST_TEST_NOCAPTURE=1
66
export RUST_BACKTRACE=1
7-
export RUSTC_EXTRA_FLAGS="-D warnings"
7+
export RUSTFLAGS="-D warnings"
88
export CARGO_INCREMENTAL=0
99
export CARGO_EXTRA_FLAGS="--all-features"
1010

miri

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ if ! test -d "$LIBDIR"; then
4545
echo "Please report a bug at https://github.com/rust-lang/miri/issues."
4646
exit 2
4747
fi
48-
# We set the rpath so that Miri finds the private rustc libraries it needs.
49-
# We enable debug-assertions to get tracing.
50-
# We enable line-only debuginfo for backtraces.
51-
export RUSTFLAGS="-C link-args=-Wl,-rpath,$LIBDIR -C debug-assertions -C debuginfo=1 $RUSTC_EXTRA_FLAGS"
5248
if [ -z "$CARGO_INCREMENTAL" ]; then
5349
# Default CARGO_INCREMENTAL to 1.
5450
export CARGO_INCREMENTAL=1
5551
fi
52+
# We set the rpath so that Miri finds the private rustc libraries it needs.
53+
# We enable debug-assertions to get tracing.
54+
# We enable line-only debuginfo for backtraces.
55+
export RUSTFLAGS="-C link-args=-Wl,-rpath,$LIBDIR -C debug-assertions -C debuginfo=1 $RUSTFLAGS"
5656

5757
## Helper functions
5858

0 commit comments

Comments
 (0)