mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-27 07:22:36 +02:00
Merge branch 'FPC-39988' into 'main'
Issue #39988: Changed order of folders where to search for included files. See merge request freepascal.org/lazarus/lazarus!155
This commit is contained in:
commit
1ddbcea70c
@ -258,6 +258,12 @@ begin
|
||||
Halt;
|
||||
end;
|
||||
|
||||
FFileToConvert:=FCmdOptions.OptionValue('input');
|
||||
AddPaths(ExtractFilePath(FFileToConvert));
|
||||
|
||||
if FCmdOptions.HasOption('paths') then
|
||||
AddPaths(FCmdOptions.OptionValue('paths'));
|
||||
|
||||
if not FCmdOptions.HasOption('no-default') then
|
||||
AddDefaultPaths;
|
||||
|
||||
@ -266,15 +272,9 @@ begin
|
||||
else
|
||||
FOutPutDirectory:=IncludeTrailingPathDelimiter(GetCurrentDir);
|
||||
|
||||
FFileToConvert:=FCmdOptions.OptionValue('input');
|
||||
AddPaths(ExtractFilePath(FFileToConvert));
|
||||
|
||||
if FCmdOptions.HasOption('unit-prefix') then
|
||||
FUnitPrefix := FCmdOptions.OptionValue('unit-prefix');
|
||||
|
||||
if FCmdOptions.HasOption('paths') then
|
||||
AddPaths(FCmdOptions.OptionValue('paths'));
|
||||
|
||||
if FCmdOptions.HasOption('overwrite-files') then
|
||||
FOverWriteFiles:=True;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user