Make IR the default evaluator (#13718)

# Description

Makes IR the default evaluator, in preparation to remove the non-IR
evaluator in a future release.

# User-Facing Changes

* Remove `NU_USE_IR` option
* Add `NU_DISABLE_IR` option
* IR is enabled unless `NU_DISABLE_IR` is set

# After Submitting
- [ ] release notes
This commit is contained in:
Devyn Cairns
2024-09-15 14:54:38 -07:00
committed by GitHub
parent c535c24d03
commit 9ca0fb772d
19 changed files with 77 additions and 57 deletions

View File

@ -290,12 +290,12 @@ pub fn nu_run_test(opts: NuOpts, commands: impl AsRef<str>, with_std: bool) -> O
.stdout(Stdio::piped())
.stderr(Stdio::piped());
// Explicitly set NU_USE_IR
// Explicitly set NU_DISABLE_IR
if let Some(use_ir) = opts.use_ir {
if use_ir {
command.env("NU_USE_IR", "1");
if !use_ir {
command.env("NU_DISABLE_IR", "1");
} else {
command.env_remove("NU_USE_IR");
command.env_remove("NU_DISABLE_IR");
}
}