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=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.70.96.237 with SMTP id dv13mr18505282pdb.8.1435572674673; Mon, 29 Jun 2015 03:11:14 -0700 (PDT) X-Received: by 10.140.106.247 with SMTP id e110mr4738qgf.7.1435572674617; Mon, 29 Jun 2015 03:11:14 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!j8no2192519igd.0!news-out.google.com!4ni22418qgh.1!nntp.google.com!j5no1099085qga.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 29 Jun 2015 03:11:14 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=193.163.1.105; posting-account=Srm5lQoAAAAEMX9rv2ilEKR6FDPapmSq NNTP-Posting-Host: 193.163.1.105 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: gprbuild fun From: Mark Lorenzen Injection-Date: Mon, 29 Jun 2015 10:11:14 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:26528 Date: 2015-06-29T03:11:14-07:00 List-Id: On Monday, June 29, 2015 at 11:59:36 AM UTC+2, Brian Drummond wrote: > On Sun, 28 Jun 2015 18:28:13 +0100, Simon Wright wrote: > > > I have a mixed-language GPR like > > > > project build is > > for languages use ("ada", "c"); > > for source_files use ("a.adb", "c.c"); > > package ide is > > for compiler_command ("ada") use "gnatmake"; > > end ide; > > end build; > > > and, if I have the native gcc and arm-eabi-gcc present in the PATH, > > gprbuild chooses to use the native gcc for the Ada part and arm-eabi-gcc > > for the C part! > > > > Fix: delete the compiler_command line. > > Presumably, ... editing it to arm-eabi-gnatmake would also work? > > -- Brian Why not simply state the target using the (appropriately named) Target project attribute and then build using gprbuild? We use Target and Runtime attributes and it works like a charm: project xyz is for Languages use ("Ada"); for Target use "leon3-elf"; for Runtime ("Ada") use "ravenscar-full-leon3"; ... end XYZ; Are these two attributes not supported by FSF GNAT (yet)? We have moved our development from using gnatmake to gprbuild and we have never looked back. It simply works. Regards, MarkL