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 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.12.200 with SMTP id a8mr2907474wic.1.1367665368688; Sat, 04 May 2013 04:02:48 -0700 (PDT) Path: hg5ni66809wib.1!nntp.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.83.MISMATCH!newsfeed.xs4all.nl!newsfeed4.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!news0.firedrake.org!cs.uu.nl!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!usenet-fr.net!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!nx02.iad01.newshosting.com!newshosting.com!69.16.185.11.MISMATCH!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Specifying a target in a GPRBuild project file? References: <8f5e2358-05ab-4b0f-82be-b2f2d7438765@googlegroups.com> <51796066.5060906@obry.net> <85obd1zkfh.fsf@stephe-leake.org> Date: Sat, 27 Apr 2013 21:09:18 -0500 Message-ID: <85bo8zz9rl.fsf@stephe-leake.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (windows-nt) Cancel-Lock: sha1:ejVe9A+qC2oCVZKfxdFsMwQE6Uk= MIME-Version: 1.0 X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: 57a25517c84d2c7c1c72719251 X-Received-Bytes: 2809 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Date: 2013-04-27T21:09:18-05:00 List-Id: "Yannick Duchêne (Hibou57)" writes: > Le Fri, 26 Apr 2013 11:54:26 +0200, Stephen Leake > a écrit: > >> Pascal Obry writes: >> >>> Le 25/04/2013 11:01, Yannick Duchêne (Hibou57) a écrit : >>>> The `--target` option should only be used with explicit invocations of >>>> GPRConfig, not with GPRBuild. >>> >>> I fully disagree. I'm building many cross tools and always using >>> gprbuild --target=xyz. This is the way it should work, and if not >>> probably a bug to report. >> >> +1 >> >> note that gprbuild will invoke gprconfig if necessary; gprbuild is the >> only tool a user needs to invoke directly. >> > > GPRBuild invokes GPRConfig, without user interaction and > acknowledgement from the user. If there are multiple compilers on the > $PATH`, the choice GPRConfig made may not be good. The user sets PATH, so that's your user input. I reset PATH for each project, so there is only one Ada compiler visible. > Also, by default > GPRBuild invokes GPRConfig each times, Not with the correct options: gprbuild -p --autoconf=obj/auto.cgpr --target=x86-windows -P opentoken.gpr wisi-generate > and if something changed in the $PATH` or in the installed compilers, > the configuration file may change and not for a good one. Sure, if you change things, things change! you must have complete control of the compilation environment. That's what makefiles are for. > Or else a `--target` option if there is a matching `.cgpr` and > it is found by GPRBuild, but this one is just half deterministic, as > if it don't find a `.cgpr`, it won't complain and will invoke > GPRConfig. I agree that's a bug. -- -- Stephe