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 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: GNAT GPL 2015 Troubles Date: Tue, 23 Jun 2015 18:07:09 +0100 Organization: A noiseless patient Spider Message-ID: References: <86d20p2xnw.fsf@stephe-leake.org> <14b883a9-c5ce-49ba-b608-23ffce29cf56@googlegroups.com> <86381isel1.fsf@stephe-leake.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="c762050aff3a30866fa7e79999b14776"; logging-data="29368"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/c8Li/U5m02IAmEHADEz05aYm6FIsbqsU=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) Cancel-Lock: sha1:PIxaJ+f/iuXeB1eYmn8arJhegEw= sha1:Oirou0FirhlUcRBh4ny4+sY+tHM= Xref: news.eternal-september.org comp.lang.ada:26435 Date: 2015-06-23T18:07:09+01:00 List-Id: Stephen Leake writes: > Simon Wright writes: > >> "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?