Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Re: Order of tool invocation

Thanks, Sanchali.
After investigating, I figured out the the order of tool invocation is
primarily decided by the order of 'inputType' elements to the target tool (linker in this case).
The order of adding tools in the toolchain reflects in the 'project->properties'
Message: 6
Date: Tue, 19 Sep 2006 10:41:30 +0530
From: "Sanchali G. Kshirsagar" <sanchalik@xxxxxxxxxxxxxxx>
Subject: RE: [cdt-dev] Order of tool invocation
To: "CDT General developers list." <cdt-dev@xxxxxxxxxxx>
Message-ID: <1F211FE03383644EAA6BB7A52FCD9B9BBD3210@xxxxxxxxxxxxx>
Content-Type: text/plain; charset="us-ascii"

Hi Delicia,

I think you will have to extend MBS using extension point
org.eclipse.cdt.managedbuilder.core.buildDefinitions and keep rest of
classes same and add your tool (toolABC) to it. You will have to add
this tool before the compiler so that the MakeFileGenerator will create
a new target for your .cla files.



From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx]
On Behalf Of Delicia
Sent: Monday, September 18, 2006 6:52 PM
To: cdt-dev@xxxxxxxxxxx
Subject: [cdt-dev] Order of tool invocation


  The MBS invokes tools in the correct order, i.e. broadly: compile -
<assemble> - link

Apart from these standard tools, my toolchain has additional tools which
should fit into specific stages of the build process.
E.g. 'toolABC' builds ".cla" files and generates a header file <hdr1.h>,
which is included in a ".c" file built by the C compiler tool
The dependency file (.d) generated by the C compiler handles the .c <->.h dependencies.

How can I ensure that 'toolABC' is invoked before the C compiler tool?
Is there an existing class which can be used to specify/edit the tool
invocation order?

Currently, I workaround this by using the 'additionalInput(additionalDependency)' attribute.
But this introduces a huge drawback - everytime there's a small change
in a single .cla file, all .c files are rebuilt.
This is rather painful when the project is big, and contains a large
number of .c sources.
Any help would be appreciated.

Back to the top