This repository was archived by the owner on May 28, 2025. It is now read-only.
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 @@ -3582,14 +3582,15 @@ impl<'test> TestCx<'test> {
35823582 } ;
35833583 debug ! ( ?support_lib_deps_deps) ;
35843584
3585- // FIXME(jieyouxu): explain what the hecc we are doing here.
3585+ // To compile the recipe with rustc, we need to provide suitable dynamic library search
3586+ // paths to rustc. This includes both:
3587+ // 1. The "base" dylib search paths that was provided to compiletest, e.g. `LD_LIBRARY_PATH`
3588+ // on some linux distros.
3589+ // 2. Specific library paths in `self.config.compile_lib_path` needed for running rustc.
35863590
3587- // This is the base dynamic library search paths that was made available to compiletest.
35883591 let base_dylib_search_paths =
35893592 Vec :: from_iter ( env:: split_paths ( & env:: var ( dylib_env_var ( ) ) . unwrap ( ) ) ) ;
35903593
3591- // We add in `self.config.compile_lib_path` which are the libraries needed to run the
3592- // host compiler.
35933594 let host_dylib_search_paths = {
35943595 let mut paths = vec ! [ self . config. compile_lib_path. clone( ) ] ;
35953596 paths. extend ( base_dylib_search_paths. iter ( ) . cloned ( ) ) ;
You can’t perform that action at this time.
0 commit comments