From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,170b136bef612224 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,UTF8 X-Received: by 10.180.188.198 with SMTP id gc6mr2891268wic.3.1367665302987; Sat, 04 May 2013 04:01:42 -0700 (PDT) Path: hg5ni66805wib.1!nntp.google.com!feeder1.cambriumusenet.nl!82.197.223.108.MISMATCH!feeder2.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.87.MISMATCH!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.news.ucla.edu!nrc-news.nrc.ca!News.Dal.Ca!news.litech.org!news.etla.org!aioe.org!.POSTED!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: Specifying a target in a GPRBuild project file? Date: Sat, 27 Apr 2013 10:37:37 +0200 Organization: Ada @ Home Message-ID: References: <8f5e2358-05ab-4b0f-82be-b2f2d7438765@googlegroups.com> <51796066.5060906@obry.net> <1jpdzc49i9m1w.12yp9l8whf5lk$.dlg@40tude.net> <517AA6C1.7050508@obry.net> <1hdsodgh31xt9$.1ua65srkn4jrx$.dlg@40tude.net> <517ACCF4.4030209@obry.net> <13cmt05t70gdb$.dlevni36jbca$.dlg@40tude.net> NNTP-Posting-Host: ZOt+glEqAP8SwP/H/SQpKw.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/12.15 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable Date: 2013-04-27T10:37:37+02:00 List-Id: Le Sat, 27 Apr 2013 08:05:35 +0200, Dmitry A. Kazakov = a =C3=A9crit: >> which is somewhat equivalent to: >> >> $ gprbuild --target=3Dx86-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 favo= ur = of an explicit `--config` option=E2=80=A6 multiple opinions differs on t= hat 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#Gprbuil= d 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). -- = =E2=80=9CSyntactic sugar causes cancer of the semi-colons.=E2=80=9D [1] =E2=80=9CStructured Programming supports the law of the excluded muddle.= =E2=80=9D [1] [1]: Epigrams on Programming =E2=80=94 Alan J. =E2=80=94 P. Yale Univers= ity