comp.lang.ada
 help / color / mirror / Atom feed
From: Mark Lorenzen <mark.lorenzen@gmail.com>
Subject: Re: gprbuild fun
Date: Mon, 29 Jun 2015 03:11:14 -0700 (PDT)
Date: 2015-06-29T03:11:14-07:00	[thread overview]
Message-ID: <caee8c6d-33b0-45d5-99d0-38166f2a2edc@googlegroups.com> (raw)
In-Reply-To: <mmr4rk$g12$1@dont-email.me>

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

  reply	other threads:[~2015-06-29 10:11 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-28 17:28 gprbuild fun Simon Wright
2015-06-28 18:09 ` Dmitry A. Kazakov
2015-06-28 19:22   ` David Botton
2015-06-28 21:37     ` vincent.diemunsch
2015-06-28 23:02       ` David Botton
2015-06-29  8:24         ` vincent.diemunsch
2015-06-29  8:36           ` Simon Wright
2015-06-29  8:57             ` Vincent
2015-06-29  8:29         ` Simon Wright
2015-06-28 20:08   ` Simon Wright
2015-06-29  9:58 ` Brian Drummond
2015-06-29 10:11   ` Mark Lorenzen [this message]
2015-06-29 11:17     ` Simon Wright
2015-06-29 11:10   ` Simon Wright
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox