Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Is there a public analogue of the default GCC ManagedCommandLineGenerator?

2009/5/25 Chris Recoskie <recoskie@xxxxxxxxxx>:
> No, there isn't. Considering that IManagedCommandLineGenerator only has one
> method, I don't think that having a non-internal command line generator to
> extend would really get you anything, since you must override and replace
> its one useful method in order to change it. I would suggest you either
> write your own from scratch, or just make your own command line generator
> and copy/paste the code from ManagedCommandLineGenerator into it and change
> what you need (if you can license your code under the EPL).

I must admit I also extend ManagedCommandLineGenerator... Doing so
lets you tweak the inputs to the command line generator, delegating to
super.generateCommandLineInfo to actually perform the generation.

James

>
> ===========================
> Chris Recoskie
> Team Lead, IBM CDT and RDT
> IBM Toronto
> "Andrey Tretyakov" <andrromeda@xxxxxxxxx>
>
>
> "Andrey Tretyakov" <andrromeda@xxxxxxxxx>
> Sent by: cdt-dev-bounces@xxxxxxxxxxx
>
> 05/25/2009 11:04 AM
>
> Please respond to
> "CDT General developers list." <cdt-dev@xxxxxxxxxxx>
>
> To
> "CDT General developers list." <cdt-dev@xxxxxxxxxxx>
> cc
>
> Subject
> [cdt-dev] Is there a public analogue of the default GCC
> ManagedCommandLineGenerator?
> Hi!
>
> It's a pity, that
> org.eclipse.cdt.managedbuilder.internal.core.ManagedCommandLineGenerator
> is also discoraged in CDT 6.0. :(
>
> I need to add some small changes of the generated command-line, but I
> don't want to implement ALL CommandLineGenerator.
>
> Is there a default GCC CommandLineGenerator to be extended?
>
> Best regards,
>               Andrey.
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-dev
>
>
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-dev
>
>


Back to the top