Unit without explicit mode switch prevents the package containing it from installing
Original Reporter info from Mantis: Maxerist
-
Reporter name: Max Vlasov
Original Reporter info from Mantis: Maxerist
- Reporter name: Max Vlasov
Description:
If I add some simple unit that contains no {$mode} switch, the Lazarus compiles the package but for the install action the following errors are appearing
....Recompiling mpkg, checksum changed for uktmp
... Fatal: Can't find unit mpkg used by Lazarus
Additional information:
Steps to reproduce.
- Take fresh or existing package,
- Create the following unit (uktmp.pas)
unit uktmp;
interface
implementation
end.
- Add it to the package.
- Try to install, the error message will appear.
- add {$mode fpc} at the start of the unit.
- Try to install, everything is ok.
Note: I'm not sure this issue belongs to lazarus bugtracker. Maybe it's more about fpc
Mantis conversion info:
- Mantis ID: 19745
- Version: 0.9.30.1 (SVN)
- Monitored by: » Maxerist (Max Vlasov)