Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] how to force a tool to compile inputs always

I think that if the files are being modified externally to Eclipse, you need to refresh the project to force the (internal) timestamps to be updated.

On 25 Apr 2013, at 00:29, Tamas Csabina <t.csabina@xxxxxxxxx> wrote:

Dear List!
I have created a custom toolchain, which contains 3 tools (assembler, compiler and linker). The toolchain is working fine, however I want to modify the assembler tool a bit.
The project where the toolchain is used contains around 150 c sources, and around 20 asm sources. There is one single asm file that is being assembled by the assembler tool. (This file contains includes to the rest of the asm sources.)
The asm sources mostly modified by other tools, not within Eclipse, so every time I do a Build (aka Make, and not Build All), the Internal Builder (this is what the toolchain uses) doesn`t invoke the assembler, as it thinks there was no change in the asm source. This is true indeed, as the one and only asm source, which being assembled by the toolchain, haven`t changed.
I want to force to assemble this single asm file every time I do a Build. How could I tackle this?
I would be happy with the fact that the assembler tool will always recompile (reassemble) every source in case of Build.
I tried so far to implement a DependencyCalculator property of the inputType of the assembler toolchain, but I got nowhere. That looks a bit complicated to me, and I was not able to figure out where is the decision is being made about recompile or not a source file. Also I am not sure if this (the dependency calculator) is the proper place for the decision at all.
Alternatively I could implement a pre-build step (as a single batch file), which will take care of assembling my one and only asm file, but this solution is not that elegant.
I would appreciate any help regarding the force of recompilation, or any alternative solutions.

SERCOM Regeltechniek B.V.
Heereweg 9
2161 AB Lisse
+31 (0)252 416530 (voice)
+31 (0)252 419481 (fax)

Op al onze offertes, op alle opdrachten aan ons en op alle met ons gesloten overeenkomsten zijn toepasselijk de METAALUNIEVOORWAARDEN, gedeponeerd ter Griffie van de Rechtbank te Rotterdam, zoals deze luiden volgens de laatstelijk aldaar neergelegde tekst. De leveringsvoorwaarden worden u op verzoek toegezonden.

De informatie/inhoud van dit e-mail bericht (en bijlagen) is uitsluitend bestemd voor de geadresseerden. SERCOM staat niet in voor juiste dan wel volledige overbrenging van de inhoud van dit e-mail bericht. SERCOM kan niet garanderen dat een verzonden e-mail bericht wordt overgebracht zonder inbreuk of tussenkomst van derden, noch de tijdige ontvangst ervan. Indien bovenstaand e-mail bericht niet aan u is gericht, verzoeken wij u vriendelijk doch dringend het e-mail bericht te retourneren aan de verzender en het origineel en eventuele kopie├źn te verwijderen en te vernietigen.

The information in this e-mail is intended only for use of the individual or entity to which it is addressed and may contain information that is privileged, confidential and exempt from disclosure under applicable law. Access to this e-mail by anyone else than the addressee is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution or any action taken omitted to be taken in reliance of it, is prohibited and may be unlawful. If you are not the intended recipient please contact the sender by return e-mail and destroy all copies of the original message.
cdt-dev mailing list

Back to the top