From: Ludovic Brenta <ludovic@ludovic-brenta.org>
Subject: Re: architecture-independent GNAT project files?
Date: Thu, 30 Apr 2009 05:31:21 -0700 (PDT)
Date: 2009-04-30T05:31:21-07:00 [thread overview]
Message-ID: <837c3305-6589-4a5a-80cd-aff757015686@u39g2000pru.googlegroups.com> (raw)
In-Reply-To: 75tj6jF19ngl2U1@mid.individual.net
On Apr 30, 2:17 pm, Björn Persson <bj...@xn--rombobjrn-67a.se> wrote:
> Dmitry A. Kazakov wrote:
[...]
> > 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...
>
> Is that a new feature that hasn't been merged into GCC yet? I don't see
> those attributes in the GNAT User's Guide of GCC 4.4.0.
>
> Are those attributes only for GPS or does the "gnat" driver actually invoke
> the VxWorks version of itself if you run
> "gnat -P project -XPlatform=x86_VxWorks"?
>
> I was thinking you'd run "i586-wrs-vxworks-gnatmake -P project" from a
> command prompt, and i586-wrs-vxworks-gnatmake would set Platform
> to "x86_VxWorks" (or more likely "i586-wrs-vxworks").
The package IDE in project files is for use by GPS; GPS parses it and
uses the supplied command names when invoking the compiler, binder,
linker etc. Gnatmake ignores this package, so your example wouldn't
work.
--
Ludovic Brenta.
next prev parent reply other threads:[~2009-04-30 12:31 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
2009-04-30 12:17 ` Björn Persson
2009-04-30 12:31 ` Ludovic Brenta [this message]
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