Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Are Make Targets treated as incremental or full build?
Are Make Targets treated as incremental or full build? [message #229650] Wed, 28 January 2009 12:21 Go to next message
Eclipse UserFriend
Hi,

I hope this is a sensible question!

When a build is launched through a Make Target does CDT treat this as a
full or incremental build?

Is there a way to configure this? Or could someone point me at the
relevant plug-in code?

Thanks,

Jon
Re: Are Make Targets treated as incremental or full build? [message #229659 is a reply to message #229650] Wed, 28 January 2009 13:13 Go to previous messageGo to next message
Eclipse UserFriend
Jon Wilson wrote:

> I hope this is a sensible question!
> When a build is launched through a Make Target does CDT treat this as a
> full or incremental build?
I assume you are referring to Make Target view? It is launched as full
build. But this does not make a difference because CDT builder will do
full build anyway. Incremental-ness is achieved exploiting natural
abilities of gmake. Note that you could run arbitrary command in Make
Target view, and so how would notion of incremental build apply?

> Is there a way to configure this? Or could someone point me at the
> relevant plug-in code?
You could check org.eclipse.cdt.make.internal.core.MakeTarget.build() code.

> Thanks,
> Jon

Andrew
Re: Are Make Targets treated as incremental or full build? [message #229772 is a reply to message #229659] Fri, 30 January 2009 06:23 Go to previous message
Eclipse UserFriend
Hi Andrew,

Thanks for your quick reply.

>> I hope this is a sensible question!
>> When a build is launched through a Make Target does CDT treat this as
>> a full or incremental build?
> I assume you are referring to Make Target view?

Yes.

It is launched as full
> build. But this does not make a difference because CDT builder will do
> full build anyway. Incremental-ness is achieved exploiting natural
> abilities of gmake. Note that you could run arbitrary command in Make
> Target view, and so how would notion of incremental build apply?

Yes, that's true. The problem I'm dealing with is related to using the
Coverity Prevent plug-in. If I've understood it correctly, when we
launch a build through Make Target view Eclipse marks the project as
having performed a full build. This is fair enough as how could it know
what the Make Target will do? But, the problem is that when the project
is marked as having had a full build, the Coverity plug-in won't allow a
"Partial Analysis" even though most of the time we have genuinely only
performed an incremental build.

Perhaps there is a whole other solution to this? I can see the problems
of using Make Targets can not easily or elegantly be worked around.

>
>> Is there a way to configure this? Or could someone point me at the
>> relevant plug-in code?
> You could check org.eclipse.cdt.make.internal.core.MakeTarget.build() code.

Thanks!

Jon


>
>> Thanks,
>> Jon
>
> Andrew
>
Previous Topic:include path with environment variables
Next Topic:How disable refresh when launching debugger?
Goto Forum:
  


Current Time: Tue Jul 22 19:53:34 EDT 2025

Powered by FUDForum. Page generated in 0.03385 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top