mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-11 09:31:34 +11:00
Required for rustc 1.61: need to print the link directories in the correct order now
This commit is contained in:
parent
8df97c8ce8
commit
20ff65b103
|
@ -17,9 +17,6 @@ fn main() {
|
||||||
String::from_utf8_lossy(&out.stderr),
|
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()
|
cc::Build::new()
|
||||||
.file("c/test-runner.c")
|
.file("c/test-runner.c")
|
||||||
|
@ -28,6 +25,10 @@ fn main() {
|
||||||
.debug(true)
|
.debug(true)
|
||||||
.compile("test-runner");
|
.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()
|
let bindings = bindgen::Builder::default()
|
||||||
.header("c/test-runner.h")
|
.header("c/test-runner.h")
|
||||||
.generate()
|
.generate()
|
||||||
|
|
Loading…
Reference in a new issue