Wish : run should re-make if source has changed

General questions regarding the usage of CodeLite
HJarausch
CodeLite Veteran
Posts: 98
Joined: Thu Feb 18, 2010 10:54 pm
Genuine User: Yes
IDE Question: C++
Contact:

Wish : run should re-make if source has changed

Post by HJarausch »

Hi,

I missing a quite common feature.
I'd like to press the <RUN> icon only. Codelite should check (using make) if any source files are newer than the current executable.
If that's the case it should re-make the project automatically (or ask if it should do so).

Or is this feature available already?

Thanks,
Helmut.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Wish : run should re-make if source has changed

Post by eranif »

this feature already exists, but due to the nature of the build system (which wont be changed anytime soon) it will perform link even when not needed.
Ctrl-F9 is the default keyboard binding for that.

(from the menu: Build -> Build and Run Project)

Eran
Make sure you have read the HOW TO POST thread
HJarausch
CodeLite Veteran
Posts: 98
Joined: Thu Feb 18, 2010 10:54 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Wish : run should re-make if source has changed

Post by HJarausch »

Yes, thanks.

I just thought about implementing the run button/icon such it always checks (by check the file dates only)
if the executable is up-to-date and re-builds it before running it if necessary. (That's the way it's implemented in SciTE)

Helmut.
Post Reply