Skip to content

Commit becfe5c

Browse files
committed
Fix test.
1 parent 27513a2 commit becfe5c

File tree

1 file changed

+6
-1
lines changed
  • src/test/run-make-fulldeps/issue-19371

1 file changed

+6
-1
lines changed

src/test/run-make-fulldeps/issue-19371/foo.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ fn compile(code: String, output: PathBuf, sysroot: PathBuf) {
6666

6767
interface::run_compiler(config, |compiler| {
6868
// This runs all the passes prior to linking, too.
69-
compiler.link().ok();
69+
let linker = compiler.enter(|queries| {
70+
queries.linker()
71+
});
72+
if let Ok(linker) = linker {
73+
linker.link();
74+
}
7075
});
7176
}

0 commit comments

Comments
 (0)