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: Emacs Ada mode with RTS Date: Thu, 18 Jun 2015 20:19:43 +0100 Organization: A noiseless patient Spider Message-ID: References: <888a3bd7-6ce8-4458-8725-8330680f48de@googlegroups.com> <86egl9do8p.fsf@stephe-leake.org> <8a492b13-7f08-4597-aa14-5aa8715850f5@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="c762050aff3a30866fa7e79999b14776"; logging-data="1424"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1883CM3rqXtKW2mPM4LcVE0MTHdEG3OSRg=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) Cancel-Lock: sha1:zqtEiF8CiZRODqH3dbNn8Je7bhg= sha1:hx7+5xJefJ06rZmg+3Szr9NPCSY= Xref: news.eternal-september.org comp.lang.ada:26377 Date: 2015-06-18T20:19:43+01:00 List-Id: Patrick Noffke writes: > Perhaps you can use gprbuild instead of gnatmake? Would that take > care of it for you? This is pretty-much a must, since gnatmake doesn't understand all the options you can put in a GPR file. Also gnatmake will lose the ability to deal with project files at all, spit spit It used to be that gprbuild understood relative paths for --RTS=, but the GPL 2015 one needs absolute paths. This GPR works perfectly in ada-mode 5.1.8 .. project Testbed is for Main use ("testbed.adb"); for Object_Dir use ".build"; for Source_Dirs use ("."); for Exec_Dir use "."; for Target use "arm-eabi"; package Builder is for Default_Switches ("ada") use ( "-g", "-Og", "--RTS=" & Project'Project_Dir & "../stm32f429i-disco-rtos", "--create-map-file" ); end Builder; package Compiler is for Default_Switches ("ada") use ( "-gnatqQafoy", "-gnatwaL.X" ); end Compiler; package Linker is for Map_File_Option use "-Wl,-Map," & Project'Project_Dir; end Linker; end Testbed; I believe that the new gprbuild will allow for Runtime ("ada") use "stm32f429i-disco-rtos"; (not sure about paths for RTSs that aren't installed) (see http://docs.adacore.com/gnat_ugx-docs/html/gnat_ugx/gnat_ugx/specifying_the_run-time_library_and_target.html#selecting-the-run-time-library)