This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Defining a common plugin machinery
- From: Brendon Costa <bcosta at avdat dot com dot au>
- To: Taras Glek <tglek at mozilla dot com>
- Cc: Grigori Fursin <grigori dot fursin at inria dot fr>, 'Basile STARYNKEVITCH' <basile at starynkevitch dot net>, 'Hugh Leather' <hughleat at hotmail dot com>, gcc at gcc dot gnu dot org, 'Sean Callanan' <spyffe at cs dot sunysb dot edu>, 'Cupertino Miranda' <cupertino dot miranda at inria dot fr>, clattner at apple dot com, iant at google dot com, 'Taras Glek' <taras dot judge at shaw dot ca>, 'Diego Novillo' <dnovillo at google dot com>, 'Mike O'Boyle' <mob at inf dot ed dot ac dot uk>
- Date: Thu, 09 Oct 2008 17:33:59 +1100
- Subject: Re: Defining a common plugin machinery
- References: <48CF93F7.8010901@google.com> <48CF9C94.9010809@starynkevitch.net> <48D0286D.8020302@mozilla.com> <48e33659.0c58560a.6454.7b17@mx.google.com> <48E37481.7040803@hotmail.com> <BLU142-DAV64A066DB0D1D85765DD4BC1420@phx.gbl> <BLU142-DAV87E6265C2FA71995506F8C1420@phx.gbl> <48E39F49.7000109@starynkevitch.net> <BLU142-DAV8B305E041FCFFDCCDAA8FC1420@phx.gbl> <48E4180C.90103@avdat.com.au> <48E45457.2090408@starynkevitch.net> <48E461CA.9030808@avdat.com.au> <48E46A64.9060406@starynkevitch.net> <48EA89AB.6080707@mozilla.com> <48eda3c7.0405560a.7aa9.1031@mx.google.com> <48EDA48E.6060004@mozilla.com>
> Personally I'm against the env var idea as it would make it harder to
> figure out what's going on. I think someone mentioned that the same
> effect could be achieved using spec files.
>
Ian mentioned the idea of creating small wrapper scripts with the names:
gcc/g++ etc which just call the real gcc/g++... adding the necessary
command line args. These can then just be put earlier in the search path.
I currently use the env var method in my project, but I think the
wrapper script idea is a bit nicer than using env vars personally, so i
will likely change to that soon.
Brendon.