Required for rustc 1.61: need to print the link directories in the correct order now

This commit is contained in:
Gwilym Kuiper 2022-06-07 22:14:01 +01:00
parent 8df97c8ce8
commit 20ff65b103

View file

@ -17,9 +17,6 @@ fn main() {
String::from_utf8_lossy(&out.stderr),
);
}
println!("cargo:rustc-link-search={}", out_path.to_str().unwrap());
println!("cargo:rustc-link-lib=static={}", "mgba-cycle");
println!("cargo:rustc-link-lib=elf");
cc::Build::new()
.file("c/test-runner.c")
@ -28,6 +25,10 @@ fn main() {
.debug(true)
.compile("test-runner");
println!("cargo:rustc-link-search={}", out_path.to_str().unwrap());
println!("cargo:rustc-link-lib=static={}", "mgba-cycle");
println!("cargo:rustc-link-lib=elf");
let bindings = bindgen::Builder::default()
.header("c/test-runner.h")
.generate()