From fb54551fdad62a836f4c521d44b37f0fc26497f0 Mon Sep 17 00:00:00 2001 From: roblabla Date: Wed, 4 Sep 2019 09:39:25 +0000 Subject: [PATCH] Fix test on 1.10.0 and earlier --- tests/rustflags.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/rustflags.rs b/tests/rustflags.rs index 41e3887..ff971af 100644 --- a/tests/rustflags.rs +++ b/tests/rustflags.rs @@ -4,7 +4,7 @@ extern crate autocfg; /// rustc. #[test] fn test_with_sysroot() { - std::env::set_var("RUSTFLAGS", "-L target/debug/deps"); + std::env::set_var("RUSTFLAGS", "-L target/debug/deps -L target/debug"); std::env::set_var("OUT_DIR", "target"); let ac = autocfg::AutoCfg::new().unwrap(); assert!(ac.probe_sysroot_crate("autocfg"));