Re: Adding default tool

Aschwin Marsman <[email protected]>
Newsgroups gmane.comp.tools.aap.devel
Message-ID <[email protected]>
On Wed, 3 Sep 2003, Lars Ivar Igesund wrote:
> From: "Bram Moolenaar" <[email protected]>
> > 
> > You copied the action for the "c" filetype, right?  Then you need to
> > remove the check for "COMPILE_ACTION".  Or rename it to
> > "D_COMPILE_ACTION".
> 
> Using D_COMPILE_ACTION made it work as I wished.
> 
> > The idea is that the default action works on most platforms.  Like the
> > "cc" programs can mostly be used to compile a C program.  The tools are
> > for setting up the compiler on a specific platform.
> > 
> > I have wondered if this variable would have to be called
> > "C_COMPILE_ACTION".  But the same variable is used for C++, since it is
> > usuallly the same compiler.  Hmm, perhaps we should use
> > CXX_COMPILE_ACTION for that, since the tool can set both variables.
> > 
> > Changing this would be incompatible with Aap version 1.0, and I promised
> > not to make incompatible changes.  Opinions?

I would vote for C_COMPILE_ACTION and CXX_COMPILE_ACTION to make it consistent,
and deprecate COMPILE_ACTION. Give a warning if COMPILE_ACTION is used for
a period of time, and then remove it. I think Aap is not that widespread
currently (What's you're idea about the current user base, maybe based
on downloads?) that that would be a big problem.
 
> I don't object to COMPILE_ACTION defaulting to C/C++. Would it break
> compability if all tools set COMPILE_ACTION plus 
> {language}_COMPILE_ACTION? Thus the D compiler could become
> the default tool if no compilers for other languages are present. Or maybe
> there is no point as long as I need to use D_COMPILE_ACTION in the
> relevant action bodies?

I don't think this is a good idea, you would get recipes which think that
COMPILE_ACTION can be used for D...
 
> Other languages that it would be natural to have COMPILE_ACTION variables
> for would at least include FORTRAN. Maybe Java?
> 
> Lars Ivar Igesund 
 
Have fun,
 
Aschwin Marsman
 
--
[email protected]              http://www.marsman.org



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.