comp.lang.ada
 help / color / mirror / Atom feed
From: sjw <simon.j.wright@mac.com>
Subject: Re: architecture-independent GNAT project files?
Date: Mon, 27 Apr 2009 12:10:10 -0700 (PDT)
Date: 2009-04-27T12:10:10-07:00	[thread overview]
Message-ID: <75e39fab-7501-40fc-b150-73ec3b90c9fe@i28g2000prd.googlegroups.com> (raw)
In-Reply-To: udhJl.12182$941.4703@bgtnsc04-news.ops.worldnet.att.net

On Apr 27, 1:06 pm, a...@anon.org (anon) wrote:
> You could use: -gnateD on your command line or GPS options list
>
>   -gnateD?  Define or redefine preprocessing symbol, e.g. -gnateDsym=val
>
> Where use could set a variable to the architecture path you wish to use
> such as for a 32-bit arch
>
> gnat make  -gnateDArchLib="/usr/lib/'  <filename>
>
>      then for the 64 bit arch use
>
> gnat make   -gnateDArchLib="/usr/lib64/'   <filename>
>
> --
> --  ArchLib is define in commnd line options. if not present an error
> --  will be generated.
> --
>    Libs_Path : String := ArchLib ;
>
>    ...
>
>    open ( File => LibFlile,
>           Name => Libs_Path & FileName,
>           Mode => In_File ) ;

This sounds very like the -X flag. I wonder why there are 2 ways of
doing the same thing?

Oh, -gnatD is a preprocessor flag, sounds like it's for a different
purpose? (gnatprep).

Personally I use -Xsym=val in Makefiles.



      reply	other threads:[~2009-04-27 19:10 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
2009-04-27 12:06 ` anon
2009-04-27 19:10   ` sjw [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox