comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: Emacs Ada mode with RTS
Date: Thu, 18 Jun 2015 20:19:43 +0100
Date: 2015-06-18T20:19:43+01:00	[thread overview]
Message-ID: <ly8ubghlio.fsf@pushface.org> (raw)
In-Reply-To: 8a492b13-7f08-4597-aa14-5aa8715850f5@googlegroups.com

Patrick Noffke <patrick.noffke@gmail.com> 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)


  reply	other threads:[~2015-06-18 19:19 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-17 18:12 Emacs Ada mode with RTS Patrick Noffke
2015-06-17 21:30 ` Simon Wright
2015-06-18 13:48   ` Patrick Noffke
2015-06-18 14:06     ` Simon Wright
2015-06-18 15:09       ` Patrick Noffke
2015-06-18 15:21         ` Patrick Noffke
2015-06-19 13:56       ` Stephen Leake
2015-06-18 15:34 ` Stephen Leake
2015-06-18 18:19   ` Patrick Noffke
2015-06-19 14:01     ` Stephen Leake
2015-06-18 18:39   ` Patrick Noffke
2015-06-18 19:19     ` Simon Wright [this message]
2015-06-19 14:12       ` Stephen Leake
2015-06-19 19:19         ` Simon Wright
2015-06-19 14:08     ` Stephen Leake
2015-06-19 14:47       ` Patrick Noffke
2015-06-21  9:48         ` 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