comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: GNAT GPL 2015 Troubles
Date: Tue, 23 Jun 2015 18:07:09 +0100
Date: 2015-06-23T18:07:09+01:00	[thread overview]
Message-ID: <lyy4ja5p6q.fsf@pushface.org> (raw)
In-Reply-To: 86381isel1.fsf@stephe-leake.org

Stephen Leake <stephen_leake@stephe-leake.org> writes:

> Simon Wright <simon@pushface.org> writes:
>
>> "RasikaSrinivasan@gmail.com" <RasikaSrinivasan@gmail.com> writes:
>>
>>> navigation did not work for me. i browsed and found the files but it
>>> is not ideal. A strong vote for your point about use clauses as well.
>>
>> For RTS components (e.g. Ada.Interrupts.Names.EXTI0_IRQ) I end up in the
>> native RTS. In spite of having the correct GPR loaded.
>
> "gnat list" is used to get the system library; testing with GNAT GPL
> 2014:
>
> with a project file foo.gpr containing
>
>    package Builder is
>       for Default_Switches ("ada") use ("--RTS=sjlj");
>    end Builder;
>
> 'gnat list -v -P foo.gpr' returns the wrong system library.
>
> 'gnat list -v --RTS=sjlj' returns the correct system library.
>
> So the solution is to change gnat-core.el gnat-get-paths-1 to pass
> --RTS=... to 'gnat list', but in a general way.
>
> We could add a project variable 'runtime' (or 'rts'?), with default
> value "zcx".
>
> The gnat tools don't accept --RTS=zcx (at least not with a default
> install), so we have to check for that special case at each use.

Given AdaCore's intention to stop gnat make supporting projects, I
suppose it's hardly surprising that gnat list doesn't understand the
full syntax of projects.

GCC 5.1.0 and GNAT GPL 2015 behave the same way as you report.

I'd prefer 'runtime' (or 'rts') to have default value nil. Or am I
thinking of the corresponding elisp custom setting?

  reply	other threads:[~2015-06-23 17:07 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-20 18:38 GNAT GPL 2015 Troubles RasikaSrinivasan
2015-06-20 19:31 ` Simon Wright
2015-06-21  9:55   ` Stephen Leake
2015-06-21 11:13     ` Simon Wright
2015-06-21 16:00       ` RasikaSrinivasan
2015-06-21 16:21         ` Simon Wright
2015-06-23 14:07           ` Stephen Leake
2015-06-23 17:07             ` Simon Wright [this message]
2015-06-23 19:09               ` Simon Wright
2015-06-23 23:25               ` RasikaSrinivasan
2015-06-24  5:14                 ` Pascal Obry
2015-06-24 11:34                   ` David Botton
2015-06-23 13:35         ` Stephen Leake
replies disabled

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