Skip to content

Commit 4fc2168

Browse files
committed
Add support for rustc-env and unset-rustc-env for aux-builds
1 parent 79cc509 commit 4fc2168

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/tools/compiletest/src/runtest.rs

+5
Original file line numberDiff line numberDiff line change
@@ -1775,6 +1775,11 @@ impl<'test> TestCx<'test> {
17751775
let mut aux_rustc =
17761776
aux_cx.make_compile_args(input_file, aux_output, EmitMetadata::No, AllowUnused::No);
17771777

1778+
for key in &aux_props.unset_rustc_env {
1779+
aux_rustc.env_remove(key);
1780+
}
1781+
aux_rustc.envs(aux_props.rustc_env.clone());
1782+
17781783
let (dylib, crate_type) = if aux_props.no_prefer_dynamic {
17791784
(true, None)
17801785
} else if self.config.target.contains("cloudabi")

0 commit comments

Comments
 (0)