Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2015-08

Run/Compile ignores changes in inline functions

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Jürgen Hestermann

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?

Reply by email

Sven Barth
to Jürgen Hestermann
"J?rgen Hestermann" wrote
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?

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150813/7bb89ae0/attachment.html>

Reply by email

Jürgen Hestermann
to Sven Barth
Sven Barth wrote 9 lines
Am 13.08.2015 12:48 schrieb "J?rgen Hestermann" : > > 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.

Reply by email