From 20ff65b1039df00fab6adf420895379eb640ab04 Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Tue, 7 Jun 2022 22:14:01 +0100 Subject: [PATCH] Required for rustc 1.61: need to print the link directories in the correct order now --- mgba-test-runner/build.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mgba-test-runner/build.rs b/mgba-test-runner/build.rs index d91ad4e4..79c6e149 100644 --- a/mgba-test-runner/build.rs +++ b/mgba-test-runner/build.rs @@ -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()