Recent

Author Topic: [SOLVED] Convince make to compile a additional unit in rtl.  (Read 827 times)

BrunoK

  • Sr. Member
  • ****
  • Posts: 452
  • Retired programmer
[SOLVED] Convince make to compile a additional unit in rtl.
« on: August 24, 2019, 01:14:29 pm »
For the time being W32.

I have added these lines to FPCDIR/rtl/fpmake.pp.
Code: Pascal  [Select][+][-]
  1.     T := P.Targets.AddUnit('winheap.pp', AllWindowsOSes);  // ~bk Windows std heap mm
  2.     with T.Dependencies do begin
  3.       AddUnit('system');
  4.       AddUnit('windows');
  5.     end;
  6.  
fpmake.pp compiles correctly.

In FPCDIR\rtl\win32\Makefile.fpc  I have completed the line with heaptrc to be
 
Code: Pascal  [Select][+][-]
  1.      heaptrc urmeth fstobjcr winheap \
  2.  
then fpcmake -TAll -r -w
urmeth and fstobjcr are personal additions and they get correctly compiled and installed.

But I cannot convince the make to compile winheap.pp, SOMEONE KNOWLEDGABLE, please ANY DIRECTION ?

Note : urmeth is a memory code patcher based on jedi and fstobjcr  is patch code for TObject.create. Those 2 haven't caused any trouble since a month.
« Last Edit: August 24, 2019, 02:42:31 pm by BrunoK »

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11453
  • FPC developer.
Re: Convince make to compile a additional unit in rtl.
« Reply #1 on: August 24, 2019, 02:20:28 pm »
Windows is build using a build unit. Add it to the uses clause in the buildunit "buildrtl"

BrunoK

  • Sr. Member
  • ****
  • Posts: 452
  • Retired programmer
Re: Convince make to compile a additional unit in rtl.
« Reply #2 on: August 24, 2019, 02:42:08 pm »
Windows is build using a build unit. Add it to the uses clause in the buildunit "buildrtl"
That was it, thank you very much. That will simplify a lot my tests.

 

TinyPortal © 2005-2018