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"));