File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
src/tools/compiletest/src Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -3584,14 +3584,15 @@ impl<'test> TestCx<'test> {
3584
3584
} ;
3585
3585
debug ! ( ?support_lib_deps_deps) ;
3586
3586
3587
- // FIXME(jieyouxu): explain what the hecc we are doing here.
3587
+ // To compile the recipe with rustc, we need to provide suitable dynamic library search
3588
+ // paths to rustc. This includes both:
3589
+ // 1. The "base" dylib search paths that was provided to compiletest, e.g. `LD_LIBRARY_PATH`
3590
+ // on some linux distros.
3591
+ // 2. Specific library paths in `self.config.compile_lib_path` needed for running rustc.
3588
3592
3589
- // This is the base dynamic library search paths that was made available to compiletest.
3590
3593
let base_dylib_search_paths =
3591
3594
Vec :: from_iter ( env:: split_paths ( & env:: var ( dylib_env_var ( ) ) . unwrap ( ) ) ) ;
3592
3595
3593
- // We add in `self.config.compile_lib_path` which are the libraries needed to run the
3594
- // host compiler.
3595
3596
let host_dylib_search_paths = {
3596
3597
let mut paths = vec ! [ self . config. compile_lib_path. clone( ) ] ;
3597
3598
paths. extend ( base_dylib_search_paths. iter ( ) . cloned ( ) ) ;
You can’t perform that action at this time.
0 commit comments