Recent

Author Topic: Is it possible to compile a unit without compiling the dependencies?  (Read 1222 times)

Brendo1720

  • Newbie
  • Posts: 1
I have 2 units user.pas and userController.pas and userControler.pas calls the user.pas unit. When I compile the uses.pas unit the uses.o file is generated, but when I compile the userController.pas file it generates the uses.o and userController.o files. Is there a way to adjust so that when compiling userController.pas, only userController.o is generated?

command I'm running:

Code: Pascal  [Select][+][-]
  1. fpc -Tlinux -Sd -O- -gw3 -B -Fusrc/model src/controller/userController.pas

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11521
  • FPC developer.
Re: Is it possible to compile a unit without compiling the dependencies?
« Reply #1 on: April 13, 2024, 02:09:01 pm »
No. Autobuild is always on with units.

 

TinyPortal © 2005-2018