8000 allow compiletest to pass down `--extern` flags by qmx · Pull Request #54020 · rust-lang/rust · GitHub
[go: up one dir, main page]

Skip to content

allow compiletest to pass down --extern flags #54020

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 14 commits into from
Prev Previous commit
Next Next commit
pass down desired crate name to rustc
  • Loading branch information
qmx committed Oct 21, 2018
commit 4b0cbefd58e568baeecaca1c6c23e9aba828f449
5 changes: 5 additions & 0 deletions src/tools/compiletest/src/runtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1571,6 +1571,11 @@ impl<'test> TestCx<'test> {
}

rustc.envs(self.props.rustc_env.clone());

for aux_crate in &self.props.aux_crates {
rustc.arg(format!("--extern {}={}", aux_crate.key, aux_crate.value));
}

self.compose_and_run(
rustc,
self.config.compile_lib_path.to_str().unwrap(),
Expand Down
0