Resource compilling regression since 3.0.0
Original Reporter info from Mantis: Netspirit
-
Reporter name: Netspirit
Original Reporter info from Mantis: Netspirit
- Reporter name: Netspirit
Description:
When directive {$R} appears in a unit source file .pp (not project main file) and "-FU" command-line switch used to specify directory for newly compiled units (.ppu/*.o), then only first compilation finished succesfully.
On next compilations compiler use already compiled units from "-FU" dir and search for resources relative to that dir, but *.res file was specified relative to unit *.pp file, that resides in different dir.
Suggested behavior: when compiler decide to use .ppu/.o instead of unit source file, he must first search for resources relative to unit source (if avail) and if not avail - relative to *.ppu.
This bug first appear in FPC 3.0.0, in FPC 2.6.4 and Delphi work correct.
Tested on official win32/cross-win64 binaries for Windows.
Steps to reproduce:
See attached project. Unpack. Edit 'compile.bat' appropriatelly. Execute 'compile.bat' few times.
Mantis conversion info:
- Mantis ID: 37141
- Build: 3.0.0
- Monitored by: » Netspirit (Netspirit), » AntonK (Anton Kavalenka)