comp.lang.ada
 help / color / mirror / Atom feed
From: sbelmont700@gmail.com
Subject: Re: Specifying a target in a GPRBuild project file?
Date: Thu, 25 Apr 2013 14:00:14 -0700 (PDT)
Date: 2013-04-25T14:00:14-07:00	[thread overview]
Message-ID: <90c9e44e-3925-463d-85c7-2fef06ab1c4e@googlegroups.com> (raw)
In-Reply-To: <op.wv290uimule2fv@cardamome>

On Thursday, April 25, 2013 5:01:32 AM UTC-4, Hibou57 (Yannick Duchêne) wrote:
> 
> Finally, that's not loosing anything: the `--target` option is not safe at  
> 
> all, using the `--config` option is better. The reason is that with  
> 
> `--config` you are sure to get what you expect or else an error. With  
> 
> `--target`, if it does not find the compiler with the default  
> 
> configuration, you may have an `aut.cgpr` for a different target than the  
> 
> one specified for the option.
> 

While I generally agree that using --config is better than --target (we have had situations where installation of a new compiler suddenly becomes the 'default' based on the path order), the fact is that either way there is a 'target' variable defined in the .cgpr, and it ought to be available in the gpr file as project'target.  There are plenty of situations where one single gpr should be able to conditionally control the source directories (et al) based on what the target will be.  

Its senseless that I have to do something like this:

gprbuild --config=vxworks.cgpr --Xtarget=vxworks project.gpr

when 1.9.10.1 clearly states (under the 'configuration-general heading) that the target attribute "is the name of the target platform", and not always a null.  One extra command line argument isn't the end of the world, I guess, but like you said, things should work how they are documented.

-sb



      parent reply	other threads:[~2013-04-25 21:00 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-23  7:46 Specifying a target in a GPRBuild project file? Yannick Duchêne (Hibou57)
2013-04-23  8:09 ` Yannick Duchêne (Hibou57)
2013-04-23 11:37   ` Yannick Duchêne (Hibou57)
2013-04-23 14:04     ` Yannick Duchêne (Hibou57)
2013-04-23 15:17       ` Yannick Duchêne (Hibou57)
2013-04-23 19:14         ` sbelmont700
2013-04-25  9:01           ` Yannick Duchêne (Hibou57)
2013-04-25 16:57             ` Pascal Obry
2013-04-25 19:02               ` Dmitry A. Kazakov
2013-04-26 16:09                 ` Pascal Obry
2013-04-26 17:51                   ` Yannick Duchêne (Hibou57)
2013-04-26 18:32                   ` Dmitry A. Kazakov
2013-04-26 18:52                     ` Pascal Obry
2013-04-27  6:05                       ` Dmitry A. Kazakov
2013-04-27  8:37                         ` Yannick Duchêne (Hibou57)
2013-04-27  8:48                           ` Dmitry A. Kazakov
2013-04-27 13:32                             ` Georg Bauhaus
2013-04-27 16:57                               ` Yannick Duchêne (Hibou57)
2013-04-27 18:30                                 ` Georg Bauhaus
2013-04-27 21:20                                   ` Yannick Duchêne (Hibou57)
2013-04-28  6:47                                     ` Gour
2013-04-28  8:11                                       ` Dmitry A. Kazakov
2013-04-28 12:56                                         ` Gour
2013-04-28 14:52                                           ` Dmitry A. Kazakov
2013-04-28 16:03                                             ` Simon Wright
2013-04-28 19:09                                             ` Gour
2013-04-28  7:21                                     ` Simon Wright
2013-04-27 19:34                                 ` Simon Wright
2013-04-26 19:09                     ` sbelmont700
2013-04-27  6:17                       ` Dmitry A. Kazakov
2013-04-27  7:45                         ` Pascal Obry
2013-04-27  8:36                           ` Dmitry A. Kazakov
2013-04-27  8:43                         ` Yannick Duchêne (Hibou57)
2013-04-26 19:31                     ` Yannick Duchêne (Hibou57)
2013-04-27  7:45                       ` Pascal Obry
2013-04-26  9:54               ` Stephen Leake
2013-04-26 17:41                 ` Yannick Duchêne (Hibou57)
2013-04-28  2:09                   ` Stephen Leake
2013-04-25 21:00             ` sbelmont700 [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