Skip to content

Commit 4b0cbef

Browse files
committed
pass down desired crate name to rustc
1 parent bd0280a commit 4b0cbef

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/tools/compiletest/src/runtest.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1571,6 +1571,11 @@ impl<'test> TestCx<'test> {
15711571
}
15721572

15731573
rustc.envs(self.props.rustc_env.clone());
1574+
1575+
for aux_crate in &self.props.aux_crates {
1576+
rustc.arg(format!("--extern {}={}", aux_crate.key, aux_crate.value));
1577+
}
1578+
15741579
self.compose_and_run(
15751580
rustc,
15761581
self.config.compile_lib_path.to_str().unwrap(),

0 commit comments

Comments
 (0)