Recent

Author Topic: makefiles  (Read 799 times)

Key-Real

  • Sr. Member
  • ****
  • Posts: 404
makefiles
« on: February 12, 2026, 08:50:36 am »
Hi,

do our BuildSystem regens make files on FPC Trunk compilation process?

I mean from Makefile.fpc

If not why?
We can trow all makefiles out of the repo, it would be cleaner.


marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12692
  • FPC developer.
Re: makefiles
« Reply #1 on: February 12, 2026, 09:30:01 am »
No it doesn't regen every time.

It would slow, and would increase bootstrap requirements, adding the makefile generator to the minimal set of files needed.


Key-Real

  • Sr. Member
  • ****
  • Posts: 404
Re: makefiles
« Reply #2 on: February 12, 2026, 09:43:45 am »
well now we are in a pickle.

my commit include regenerated makefiles because I excluded packages for my target.

slowing down the build process is not a creterium, it takes a bit now... so 4 sec would'nt be a havy deal.

I strongly recommend to regen them on the build process.


Key-Real

  • Sr. Member
  • ****
  • Posts: 404
Re: makefiles
« Reply #3 on: February 12, 2026, 10:04:55 am »
now after every fork update I have to rebuild all makefiles and push a new, only with the makefiles, commit to merge :(

PascalDragon

  • Hero Member
  • *****
  • Posts: 6344
  • Compiler Developer
Re: makefiles
« Reply #4 on: February 12, 2026, 09:32:43 pm »
I strongly recommend to regen them on the build process.

No, because the makefiles need to be regenerated using an fpcmake built from the up to date version. So there would be the problem that this would need to be built first, but that might depend on code only available in the up to date RTL. So you'd have to rebuilt everything anyway.

now after every fork update I have to rebuild all makefiles and push a new, only with the makefiles, commit to merge :(

That's simply how it is when you have a pending change for the template.

Key-Real

  • Sr. Member
  • ****
  • Posts: 404
Re: makefiles
« Reply #5 on: February 12, 2026, 09:56:26 pm »
Quote
using an fpcmake built from the up to date version
ah, than ok. I thought we use the Stable Version fpcmake

PascalDragon

  • Hero Member
  • *****
  • Posts: 6344
  • Compiler Developer
Re: makefiles
« Reply #6 on: February 12, 2026, 11:37:48 pm »
Quote
using an fpcmake built from the up to date version
ah, than ok. I thought we use the Stable Version fpcmake

No, because then targets only supported by main wouldn't be supported like - tadda! - your PS1 port ;)

valdir.marcos

  • Hero Member
  • *****
  • Posts: 1143
Re: makefiles
« Reply #7 on: February 16, 2026, 11:24:17 am »
I strongly recommend to regen them on the build process.
No, because the makefiles need to be regenerated using an fpcmake built from the up to date version. So there would be the problem that this would need to be built first, but that might depend on code only available in the up to date RTL. So you'd have to rebuilt everything anyway.

now after every fork update I have to rebuild all makefiles and push a new, only with the makefiles, commit to merge :(
That's simply how it is when you have a pending change for the template.
Good information.

 

TinyPortal © 2005-2018