Re: Adding default tool

Bram Moolenaar <[email protected]>
Newsgroups gmane.comp.tools.aap.devel
Message-ID <[email protected]>
Lars Ivar Igesund wrote:

> I've got further now. The next problem can be handled in the
> project's recipes, but IMO it shouldn't need to. The problem
> is that default.aap find msvc (actually the Open Watcom clone,
> but anyway ...) and since it is listed first, it becomes the
> default tool and since it is the default tool, it tries to compile
> my D files which isn't possible. Which means that that tool will try
> to compile whichever language is thrown at it, even if some other
> compiler present actually knows how to compile it.
> 
> If someone hints at a possible solution, I might look into it.

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".

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?

-- 
        **  Hello and Welcome to the Psychiatric Hotline **
If you are obsessive-compulsive, please press 1 repeatedly.
If you are co-dependent, please ask someone to press 2.
If you have multiple personalities, please press 3, 4, 5 and 6.
If you are paranoid-delusional, we know who you are and what you want
       - just stay on the line so we can trace the call.
If you are schizophrenic, listen carefully and a little voice will
       tell you which number to press next.
If you are manic-depressive, it doesn't matter which number you press
       - no one will answer.
If you suffer from panic attacks, push every button you can find.
If you are sane, please hold on - we have the rest of humanity on the
        other line and they desparately want to ask you a few questions.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///          Creator of Vim - Vi IMproved -- http://www.Vim.org          \\\
\\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
 \\\  Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html  ///


-------------------------------------------------------
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.