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: 103376,170b136bef612224 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 X-Received: by 10.180.96.225 with SMTP id dv1mr17764706wib.6.1366880501358; Thu, 25 Apr 2013 02:01:41 -0700 (PDT) Path: p18ni25290wiv.0!nntp.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!193.141.40.65.MISMATCH!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!news.mixmin.net!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: Thu, 25 Apr 2013 11:01:32 +0200 Organization: Ada @ Home Message-ID: References: <8f5e2358-05ab-4b0f-82be-b2f2d7438765@googlegroups.com> NNTP-Posting-Host: MElZi/LkXjdV3cIyylAczw.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-25T11:01:32+02:00 List-Id: Le Tue, 23 Apr 2013 21:14:17 +0200, a =C3=A9crit= : > FWIW, I reported that behavior to them some time last year (target = > attribute within a project file always resolves to a null string), but= = > never got a response. 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 th= e = one specified for the option. When passing the target to the project file is required, then an externa= l = variable may be used, as with an `-Xtarget=3D=E2=80=A6` option given to = GPRBuild. The `--target` option should only be used with explicit invocations of = GPRConfig, not with GPRBuild. -- = =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