Skip to content

after changing code in Unit Unit not recompiled, old .ppu / .o used

Original Reporter info from Mantis: jc99
  • Reporter name: Joe care

Description:

I have a Project where (Test-)Project, TestCases-Units, Source-Units, ProjOut and EXE are each stored in different places.
Proj: ...\Project\FPC
Source: ...\Project\Source
Testcases: ...\Project\test
ProjOut: ...\Project\bin\i386-win32
Exe: ...\Project\bin
{$mode delphi}
Units from Source and Test are linked in using the
uses
&LtPos;unit> in &LtPos;Path> e.g: TestCase1 in '..\test\Testcase1.pas',
when ProjOut is empty it's OK
when *.ppu and *.o files in ProjOut no recompile (new EXE is generated)

Steps to reproduce:

  1. New Proj
  2. save as ..\fpc\proj1
  3. New Unit1
  4. Save as ..\source\unit1.pas (omit add to path)
  5. edit Proj to use Unit1
  6. Compile
  7. Change Unit1
  8. Compile again (Unit1 not recompiled)

Additional information:

when ../source and ../test in Other Units (-Fu) path everything seems fine
deleting them: Problem exists
Problem also exists in objfpc-Mode

Mantis conversion info:

  • Mantis ID: 26760
  • OS: Windows
  • OS Build: Win7 x64
  • Build: release
  • Platform: i386
  • Version: 2.6.4
  • Fixed in version: 3.3.1
  • Fixed in revision: 49587 (#924f9466),49613 (#2a2576b1)
  • Monitored by: » jc99 (Joe care), » @onpok (Ondrej Pokorny)
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information