File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -57,3 +57,6 @@ default = ["stack-cache"]
57
57
# Will be enabled on CI via `--all-features`.
58
58
expensive-debug-assertions = []
59
59
stack-cache = []
60
+
61
+ [profile .dev ]
62
+ opt-level = 2 # because it's too slow otherwise
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ set -euo pipefail
3
3
set -x
4
4
5
5
# Determine configuration
6
- export RUSTFLAGS=" -D warnings"
6
+ export RUSTFLAGS=" -D warnings -C debug-assertions -C debuginfo=1 "
7
7
export CARGO_INCREMENTAL=0
8
8
export CARGO_EXTRA_FLAGS=" --all-features" # in particular, expensive-debug-assertions
9
9
Original file line number Diff line number Diff line change @@ -108,9 +108,7 @@ if [ -z "$CARGO_TARGET_DIR" ]; then
108
108
export CARGO_TARGET_DIR=" $MIRIDIR /target"
109
109
fi
110
110
# We set the rpath so that Miri finds the private rustc libraries it needs.
111
- # We enable debug-assertions to get tracing.
112
- # We enable line-only debuginfo for backtraces.
113
- export RUSTFLAGS=" -C link-args=-Wl,-rpath,$LIBDIR -C debug-assertions -C debuginfo=1 $RUSTFLAGS "
111
+ export RUSTFLAGS=" -C link-args=-Wl,-rpath,$LIBDIR $RUSTFLAGS "
114
112
# Determine flags passed to all cargo invocations.
115
113
# This is a bit more annoying that one would hope due to
116
114
# <https://github.com/rust-lang/cargo/issues/6992>.
You can’t perform that action at this time.
0 commit comments