File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -120,14 +120,16 @@ fn default_config() -> compiletest::Config {
120
120
config. run_lib_path = path. clone ( ) ;
121
121
config. compile_lib_path = path;
122
122
}
123
+ let current_exe_path = std:: env:: current_exe ( ) . unwrap ( ) ;
124
+ let deps_path = current_exe_path. parent ( ) . unwrap ( ) ;
123
125
124
126
// Using `-L dependency={}` enforces that external dependencies are added with `--extern`.
125
127
// This is valuable because a) it allows us to monitor what external dependencies are used
126
128
// and b) it ensures that conflicting rlibs are resolved properly.
127
129
config. target_rustcflags = Some ( format ! (
128
130
"--emit=metadata -L dependency={} -L dependency={} -Dwarnings -Zui-testing {}" ,
129
131
host_lib( ) . join( "deps" ) . display( ) ,
130
- cargo :: TARGET_LIB . join ( "deps" ) . display( ) ,
132
+ deps_path . display( ) ,
131
133
extern_flags( ) ,
132
134
) ) ;
133
135
You can’t perform that action at this time.
0 commit comments