#14 Add a directory attribute to <cc>

open
nobody
None
5
2014-08-12
2004-04-13
No

Hi,

I have several gccs installed.

/usr/local/bin (gcc3)
/opt/old/gcc/bin (gcc2)

/usr/local/arm/2.x/bin (arm gcc 2)
/opt/aes/cross-gcc3/bin (arm gcc 3)

How can I specified the directory where <cc> invoke the
gcc?

I think a new attribute "directory" of <cc> will solve
the problem
like:
<cc outfile="..." link="shared" debug="true"
dir="/opt/aes/cross-gcc3/bin">

regards,
Joachim

Discussion

  • Anonymous - 2004-04-27

    Logged In: YES
    user_id=962340

    The same problem exists for me as I have two MS compilers
    installed (6.0 and 7.1) and I can't change the PATH variable. I
    think that above solution (adding of "directory" attribute) is
    good or at least it will work for me.

    regards,
    Alexander

     
  • Joel Schuster

    Joel Schuster - 2006-02-09

    Logged In: YES
    user_id=798143

    I've only been able to get around this by creating my own
    Compiler class in Java and adding it to the available
    libraries in ant. I then specify the new compiler class:

    <compiler if="realtimeFlag"
    classname="org.navsys.rtlgcc.RTLGccCCompiler" />

    In my case I have a fully gcc compliant compiler that has a
    different kernel for building realtime executables for a
    special linux kernel.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks