Fix test.

This commit is contained in:
Camille GILLOT 2019-11-24 21:12:38 +01:00
parent 27513a21c4
commit becfe5c153

View File

@ -66,6 +66,11 @@ fn compile(code: String, output: PathBuf, sysroot: PathBuf) {
interface::run_compiler(config, |compiler| {
// This runs all the passes prior to linking, too.
compiler.link().ok();
let linker = compiler.enter(|queries| {
queries.linker()
});
if let Ok(linker) = linker {
linker.link();
}
});
}