Use a MIRI namespaced env var name for auto ops
This commit is contained in:
parent
392342fcaf
commit
bfa2ff646c
@ -169,14 +169,14 @@ to `.vscode/settings.json` in your local Miri clone:
|
||||
],
|
||||
"rust-analyzer.checkOnSave.overrideCommand": [
|
||||
"env",
|
||||
"AUTO_OPS=42",
|
||||
"MIRI_AUTO_OPS=no",
|
||||
"./miri",
|
||||
"check",
|
||||
"--message-format=json"
|
||||
],
|
||||
"rust-analyzer.buildScripts.overrideCommand": [
|
||||
"env",
|
||||
"AUTO_OPS=42",
|
||||
"MIRI_AUTO_OPS=no",
|
||||
"./miri",
|
||||
"check",
|
||||
"--message-format=json",
|
||||
|
4
miri
4
miri
@ -53,8 +53,8 @@ EOF
|
||||
MIRIDIR=$(python3 -c 'import os, sys; print(os.path.dirname(os.path.realpath(sys.argv[1])))' "$0")
|
||||
|
||||
## Run the auto-things.
|
||||
if [ -z "$AUTO_OPS" ]; then
|
||||
export AUTO_OPS=42
|
||||
if [ -z "$MIRI_AUTO_OPS" ]; then
|
||||
export MIRI_AUTO_OPS=42
|
||||
|
||||
# Run this first, so that the toolchain doesn't change after
|
||||
# other code has run.
|
||||
|
Loading…
Reference in New Issue
Block a user