From: sjw <simon.j.wright@mac.com>
Subject: Re: architecture-independent GNAT project files?
Date: Tue, 28 Apr 2009 13:56:24 -0700 (PDT)
Date: 2009-04-28T13:56:24-07:00 [thread overview]
Message-ID: <53e0f35c-2ed9-485c-b76d-c7f34a0268a9@f1g2000prb.googlegroups.com> (raw)
In-Reply-To: 1xrnblwdskgjg$.1v3turpillxav$.dlg@40tude.net
On Apr 28, 8:24 am, "Dmitry A. Kazakov" <mail...@dmitry-kazakov.de>
wrote:
> Hmm, I see no obvious way to do it. In my case there are several GNAT
> compilers installed. The project variable Platform chooses the compiler as
> well. For example, I have:
>
> package Ide is
> case Platform is
> when "x86_Windows" =>
> for Gnatlist use "gnatls";
> for Gnat use "gnat";
> for Compiler_Command ("ada") use "gnatmake";
> for Debugger_Command use "gdb";
> when "x86_VxWorks" =>
> for Gnatlist use "i586-wrs-vxworks-gnatls";
> for Gnat use "i586-wrs-vxworks-gnat";
> for Compiler_Command ("ada") use "i586-wrs-vxworks-gnatmake";
> for Debugger_Command use "i586-wrs-vxworks6-gdb";
> end case;
> end Ide;
>
> This changes gnatlist, gnat, gnatmake, everything...
If you say
$ gnatmake -Pdmitry.gpr -XPlatform=x86_VxWorks
does it swap then? When we wrote our Project files we weren't aware of
Compiler_Command, in fact it may not even have been available, so we
have to name the compiler as well as setting the variables:
$ i586-wrs-vxworks6-gnatmake -Pdmitry.gpr -XPlatform=x86_VxWorks
Of course, once the makefiles are set up it doesn't make a heap of
difference.
next prev parent reply other threads:[~2009-04-28 20:56 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-27 7:32 architecture-independent GNAT project files? Björn Persson
2009-04-27 8:02 ` Dmitry A. Kazakov
2009-04-27 21:16 ` Björn Persson
2009-04-27 21:55 ` Ludovic Brenta
2009-04-28 21:41 ` Björn Persson
2009-04-28 7:24 ` Dmitry A. Kazakov
2009-04-28 20:56 ` sjw [this message]
2009-04-30 12:17 ` Björn Persson
2009-04-30 12:31 ` Ludovic Brenta
2009-04-27 12:06 ` anon
2009-04-27 19:10 ` sjw
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox