From: "Yannick Duchêne (Hibou57)" <yannick_duchene@yahoo.fr>
Subject: Re: Specifying a target in a GPRBuild project file?
Date: Sat, 27 Apr 2013 10:37:37 +0200
Date: 2013-04-27T10:37:37+02:00 [thread overview]
Message-ID: <op.wv6x8zh0ule2fv@cardamome> (raw)
In-Reply-To: 13cmt05t70gdb$.dlevni36jbca$.dlg@40tude.net
Le Sat, 27 Apr 2013 08:05:35 +0200, Dmitry A. Kazakov
<mailbox@dmitry-kazakov.de> a écrit:
>> which is somewhat equivalent to:
>>
>> $ gprbuild --target=x86-pc-vxworks foo.gpr
>
> Which wonders me how gprbuild might know the target. It should search for
> all installed cross compilers. Does it that? How? Which one gets
> selected?
It's all about GPRConfig, which is invoked behind the scene (precisely
something I personally prefer to be explicit, and that's why I'm in favour
of an explicit `--config` option… multiple opinions differs on that topic).
All the answers to your question are in section #2 of the GPRBuild User
Guide and in the GPRConfig database.
See: http://docs.adacore.com/gprbuild-docs/html/gprbuild_ug.html#Gprbuild
This will tell you about how GPRBuild and GPRConfig works together.
See: `/usr/share/gprconfig/*.xml`
This will tell you how GPRConfig searchs for compilers and select the
appropriate one. This directory exists only if you have GPRBuild
installed. Note you may also give a `--db` option to GPRBuild, to extend
the database with you own database extension (that's what I do for my
compilers, as the default database only knows about GCC 4.6, while I'm
using GCC 4.8).
--
“Syntactic sugar causes cancer of the semi-colons.” [1]
“Structured Programming supports the law of the excluded muddle.” [1]
[1]: Epigrams on Programming — Alan J. — P. Yale University
next prev parent reply other threads:[~2013-04-27 8:37 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) [this message]
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
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox