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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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,ASCII X-Received: by 10.180.85.5 with SMTP id d5mr2901531wiz.0.1367665282214; Sat, 04 May 2013 04:01:22 -0700 (PDT) Path: hg5ni66805wib.1!nntp.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!85.12.40.130.MISMATCH!xlned.com!feeder1.xlned.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: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Specifying a target in a GPRBuild project file? Date: Sat, 27 Apr 2013 08:05:35 +0200 Organization: cbb software GmbH Message-ID: <13cmt05t70gdb$.dlevni36jbca$.dlg@40tude.net> 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> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: rHWOzyHApalsT5sEUcbvVQ.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Date: 2013-04-27T08:05:35+02:00 List-Id: On Fri, 26 Apr 2013 20:52:36 +0200, Pascal Obry wrote: > Le 26/04/2013 20:32, Dmitry A. Kazakov a �crit : >> I use a scenario variable Platform to select the compiler, binder, linker, >> archiver, whatever needed. E.g. >> >> case Platform is >> ... >> when "x86_vxworks" => >> ... >> for Gnatlist use "... 586-wrs-vxworks-gnatls"; >> ... > > And here there is zero knowledge about the way the target support the > tools, compiler specific options needed, response file support... Yes, but that would not work anyway. I mean, in any case, I must set specific options for each platform regardless whatever knowledge gprbuild may possess. >> I do this: >> >> gnatmake -Pfoo.gpr -XPlaform=x86_vxworks >> >> Do I correctly understand that "target" requires a configuration project? >> Because I use none. > > Yes and no. I don't see why you are not using: > > $ x86-pc-vxworks-gnatmake -Pfoo.gpr I use one gnatmake for all targets, which is an advantage when you have to mount additional tool chain on top of it. > 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? -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de