File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2146,8 +2146,8 @@ namespace Harness {
21462146 return filePath . indexOf ( Harness . libFolder ) === 0 ;
21472147 }
21482148
2149- export function getDefaultLibraryFile ( io : Harness . Io ) : Harness . Compiler . TestFile {
2150- const libFile = Harness . userSpecifiedRoot + Harness . libFolder + Harness . Compiler . defaultLibFileName ;
2149+ export function getDefaultLibraryFile ( libPath : string , io : Harness . Io ) : Harness . Compiler . TestFile {
2150+ const libFile = Harness . userSpecifiedRoot + Harness . libFolder + libPath . slice ( io . directoryName ( libPath ) . length + 1 ) ;
21512151 return { unitName : libFile , content : io . readFile ( libFile ) } ;
21522152 }
21532153
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ namespace RWC {
131131 }
132132 else {
133133 // set the flag to put default library to the beginning of the list
134- inputFiles . unshift ( Harness . getDefaultLibraryFile ( oldIO ) ) ;
134+ inputFiles . unshift ( Harness . getDefaultLibraryFile ( fileRead . path , oldIO ) ) ;
135135 }
136136 }
137137 }
You can’t perform that action at this time.
0 commit comments