mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-11 07:34:18 +00:00
Use relative deps path
This commit is contained in:
parent
7f1c2c0e53
commit
cea46dd9fe
1 changed files with 3 additions and 1 deletions
|
@ -120,6 +120,8 @@ fn default_config() -> compiletest::Config {
|
|||
config.run_lib_path = path.clone();
|
||||
config.compile_lib_path = path;
|
||||
}
|
||||
let current_exe_path = std::env::current_exe().unwrap();
|
||||
let deps_path = current_exe_path.parent().unwrap();
|
||||
|
||||
// Using `-L dependency={}` enforces that external dependencies are added with `--extern`.
|
||||
// This is valuable because a) it allows us to monitor what external dependencies are used
|
||||
|
@ -127,7 +129,7 @@ fn default_config() -> compiletest::Config {
|
|||
config.target_rustcflags = Some(format!(
|
||||
"--emit=metadata -L dependency={} -L dependency={} -Dwarnings -Zui-testing {}",
|
||||
host_lib().join("deps").display(),
|
||||
cargo::TARGET_LIB.join("deps").display(),
|
||||
deps_path.display(),
|
||||
extern_flags(),
|
||||
));
|
||||
|
||||
|
|
Loading…
Reference in a new issue