File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
crates/compilers/src/preprocessor Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -59,13 +59,15 @@ impl Preprocessor<SolcCompiler> for TestOptimizerPreprocessor {
5959 let mut parsing_context = ParsingContext :: new ( & sess) ;
6060 parsing_context. file_resolver . set_current_dir ( & paths. root ) ;
6161 for remapping in & paths. remappings {
62- parsing_context
63- . file_resolver
64- . add_import_map ( PathBuf :: from ( & remapping. name ) , PathBuf :: from ( & remapping. path ) ) ;
65- }
66- for include_path in & paths. include_paths {
67- let _ = parsing_context. file_resolver . add_import_path ( include_path. clone ( ) ) ;
62+ parsing_context. file_resolver . add_import_remapping (
63+ solar_sema:: interface:: config:: ImportRemapping {
64+ context : remapping. context . clone ( ) . unwrap_or_default ( ) ,
65+ prefix : remapping. name . clone ( ) ,
66+ path : remapping. path . clone ( ) ,
67+ } ,
68+ ) ;
6869 }
70+ parsing_context. file_resolver . add_include_paths ( paths. include_paths . iter ( ) . cloned ( ) ) ;
6971
7072 // Add the sources into the context.
7173 let mut preprocessed_paths = vec ! [ ] ;
You can’t perform that action at this time.
0 commit comments