Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-dev] Rebuilding managed build project on properties change

Hi Vladimir,

> If you're saying that this is supported in standard CDT, can you point
me > to 
> the docs or code where I can learn more?
Take a look at


-----Original Message-----
From: Vladimir Prus [mailto:vladimir@xxxxxxxxxxxxxxxx] 
Sent: Monday, September 11, 2006 6:53 PM
To: Sennikovsky, Mikhail
Cc: cdt-dev@xxxxxxxxxxx
Subject: Re: [cdt-dev] Rebuilding managed build project on properties

On Monday 11 September 2006 17:48, Sennikovsky, Mikhail wrote:

Hi Mikhail,

> > it appears that you're right about standard CDT. I've observed the
> problem
> > when testing "toolset-global options" -- options that affect not
> one
> > tool, but several of them. (I plan to sumbit that feature when it's
> more
> > ready)
> [Mikhail] Are you talking about some new functionality you are
> implementing? I'm asking because MBS already contains the shared
> (tool-chain) option functionality that in conjunction with the Option
> Value Handler mechanism is intended to be used for tool-chain wide
> setting modifications including modifying option for multiple tools.

Hmm, I did not find any when I was trying to get this functionality. 
Basically, I look for top-level option such a "Board". Such option
should be 
enumerated and each enumeration has separate command line options for 
compiler, assembler and linker. Something like:


If you're saying that this is supported in standard CDT, can you point
me to 
the docs or code where I can learn more?

> > Can you tell me how changes in CDT tool properties currently cause a
> > rebuild,
> > so that I can figure out why the same code does not work for my new
> > options?
> [Mikhail] Most of the MBS model objects (Configuration, ToolChain,
> Option) maintain the rebuild state that gets set to "rebuild" when the
> property of the object is changed.
> The rebuild states are analyzed and the set of resources affected by
> MBS Model changes is calculated. This is done by the MBS Build Model.
> The affected resources are then removed and rebuild.
> See org.eclipse.cdt.managedbuilder.buildmodel.BuildDescriptionManager
> class and the implementation of the
> ild() method.
> The build/rebuild itself is caused by the .cdtbuild file update that
> performed while persisting the MBS properties.

Thanks for the pointers. After some stepping though the code, I think
starting to understand the logic. I'll look more and get back to this
when I'm stuck again.


Back to the top