InstantFPC problem with caching
Original Reporter info from Mantis: IgorKokarev
-
Reporter name: Igor Kokarev
Original Reporter info from Mantis: IgorKokarev
- Reporter name: Igor Kokarev
Description:
InstantFPC wrongly uses caching when I use $I directive to include additional .pas file. Even I modify included pas file and the main script is untouched, this scipt will not be recompiled.
-B parameter is ignored.
Steps to reproduce:
// --- Main script:
#!/usr/local/bin/instantfpc -B
{$mode delphi}
{$I TestVersion.pas}
begin
WriteLn('Version: '+GetVerNumber);
end.
// --- TestVersion.pas file:
function GetVerNumber: String;
begin
Result:='18';
end;
Additional information:
This problem also occurs in the latest FPC Trunk on Apple Silicon with macOS Big Sur 11.0 Beta 5.
I attach a simple test project.
Mantis conversion info:
- Mantis ID: 37618
- OS: macOS
- OS Build: 10.15.5
- Platform: Intel x86-64
- Version: 3.2.0