From: Stephen Leake <stephen_leake@stephe-leake.org>
Subject: Re: GNAT GPL 2015 Troubles
Date: Tue, 23 Jun 2015 09:07:38 -0500
Date: 2015-06-23T09:07:38-05:00 [thread overview]
Message-ID: <86381isel1.fsf@stephe-leake.org> (raw)
In-Reply-To: lyzj3tt4ku.fsf@pushface.org
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.
--
-- Stephe
next prev parent reply other threads:[~2015-06-23 14: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 [this message]
2015-06-23 17:07 ` Simon Wright
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