[Lazarus] Run/Compile ignores changes in inline functions

Jürgen Hestermann juergen.hestermann at gmx.de
Fri Aug 14 10:46:28 CEST 2015


Am 2015-08-13 um 23:35 schrieb Sven Barth:
 >
 > Am 13.08.2015 12:48 schrieb "Jürgen Hestermann" <juergen.hestermann at gmx.de>:
 > >
 > > It seems that if I change something within a function that is declared "inline"
 > > and I then use "run/compile" in Lazarus it does not rebuild this function.
 > > I have to use "run/build" to see my changes in the program.
 > > Is this a known issue?
 >
 > Does this also happen if you compile on the commandline using fpc directly? Which compiler version are you using?

I am using the standard Lazarus IDE 1.4.2 with FPC 2.6.4 (on Windows).
I have not tested this on the command line yet (I don't even know how to invoke it).

But maybe it was not precise what I wrote.
I am using the "Run" command (invoked with key) which IMO
does a "Run/Compile" with additonal start of the program.
The inline function is declared in one unit while it is called
in another unit. Maybe this plays a role here.

Now that I think about it it could be a problem of FPC, not Lazarus.
But I don't know how it works in the background.
The unit with the inline function seems to be recompiled but
not the unit(s) which use these functions.
Because of the nature of inline functions I would expect them
to be recompiled too.




More information about the Lazarus mailing list