mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-19 21:19:31 +02:00
pastojs: uses in filename: if not found try pcu
git-svn-id: trunk@47205 -
This commit is contained in:
parent
f529253c0b
commit
f15deb1640
@ -5290,9 +5290,8 @@ begin
|
||||
end else begin
|
||||
// search Pascal file with InFilename
|
||||
FoundPasFilename:=FS.FindUnitFileName(UseUnitname,InFilename,ModuleDir,FoundPasIsForeign);
|
||||
if FoundPasFilename='' then
|
||||
exit; // an in-filename unit source is missing -> stop
|
||||
FoundPasUnitName:=ExtractFilenameOnly(InFilename);
|
||||
if FoundPasFilename<>'' then
|
||||
FoundPasUnitName:=ExtractFilenameOnly(InFilename);
|
||||
|
||||
// Note: at the moment if there is a source do not search for pcu
|
||||
// Eventually search for both, load pcu and if that fails unload pcu and load source
|
||||
@ -5301,7 +5300,9 @@ begin
|
||||
// no pas file -> search pcu
|
||||
FoundPCUFilename:=PCUSupport.FindPCU(UseUnitName);
|
||||
if FoundPCUFilename<>'' then
|
||||
begin
|
||||
FoundPCUUnitName:=UseUnitName;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user