I have a situation whereby we require 2 versions of GCC installed on a
system in order to build.
We are getting around this by using the compiler types c++ and g++ for each
of the compiler versions. For example, to call gcc 2.96 we use c++ and to
call gcc 3.02 we use g++. We ensure that we have to correct softlinks setup
to support this.
This is not entirely elegant and it will quickly lead to confusion. I was
contemplating adding a version attribute to <cc> task.
<cc objdir="obj" ... >
<compiler name="gcc" version="3.0.2" ... />
This would then spawn 'gcc-3.02' instead of gcc. gcc-2.03 would then have to
be located in the PATH.
Is this the right way to go? Is there something that I'm overlooking?
Thanks for your help,
Get latest updates about Open Source Projects, Conferences and News.