guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Ada compiler


From: Danny Milosavljevic
Subject: Ada compiler
Date: Thu, 19 Jan 2017 15:23:47 +0100

Hi,

would it be possible to provide the GCC Ada compiler?

I would do it myself - however, it seems that GNAT requires GNAT which is a 
bootstrapping problem.

diff --git a/gnu/packages/gcc.scm b/gnu/packages/gcc.scm
index cfd33f85a..ef4136fa4 100644
--- a/gnu/packages/gcc.scm
+++ b/gnu/packages/gcc.scm
@@ -861,3 +861,18 @@ to be a tutorial of the language.  Rather, it outlines all 
of the constructs
 of the language.  Library functions are not included.")
     (home-page "http://www.gnu.org/software/gnu-c-manual";)
     (license fdl1.3+)))
+
+(define-public gnat-4.9
+  (custom-gcc gcc-4.9 "gnat" '("gnat")
+              %generic-search-paths))
+
+(define-public gnat-6
+  (custom-gcc gcc-6 "gnat" '("gnat")
+              %generic-search-paths))
+
+(define-public gnat
+  ;; Note: Update this when GCC changes!  We cannot use
+  ;; (custom-gcc gcc "gnat" …) because that would lead to a package object
+  ;; that is not 'eq?' with gnat-4.9, and thus 'fold-packages' would
+  ;; report two address@hidden that are in fact identical.
+  gnat-4.9)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]