[fpc-devel] Test changes in e.g. a package

Michael Van Canneyt michael at freepascal.org
Wed Jul 18 13:39:07 CEST 2018



On Wed, 18 Jul 2018, Bart wrote:

> Hi,
>
> Sorry if this is a RTFM question.
>
> Whenever I make some changes to the sourcecode of e.g. a package or an
> RTL-file, in order to test these changes I do a make clean/make
> install in the root directory.
> (e.g. I change one line in packages/flc-registry/src/regini.inc)
> This takes several minutes (which especially sucks if I made a typo
> which leads to a syntax error).
>
> Is there a faster way to do this?

In general: no.

But:
* if the package does not have dependencies, you can just recompile that package.
   cd packages/fcl-registry
   make clean allOPT=-gl && sudo make install

* For units that can be tested directly, copy the unit to the directory
   where your test program is, recompile&test till OK.

When possible, I do the latter.

Michael.



More information about the fpc-devel mailing list