summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnu/packages/commencement.scm7
-rw-r--r--gnu/packages/gcc.scm12
2 files changed, 19 insertions, 0 deletions
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index 60ade637e1..24382d5437 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -3744,5 +3744,12 @@ Fortran development to be installed in user profiles. This includes
gfortran, as well as libc (headers and binaries, plus debugging symbols
in the @code{debug} output), and binutils.")))
+(define-public gm2-toolchain
+ (package (inherit (make-gcc-toolchain gm2))
+ (synopsis "Complete GCC tool chain for Modula-2 development")
+ (description "This package provides a complete GCC tool chain for
+Modula-2 development to be installed in user profiles. This includes
+modula2, as well as libc (headers and binaries, plus debugging symbols
+in the @code{debug} output), and binutils.")))
;;; commencement.scm ends here
diff --git a/gnu/packages/gcc.scm b/gnu/packages/gcc.scm
index 2486448893..2c4e967945 100644
--- a/gnu/packages/gcc.scm
+++ b/gnu/packages/gcc.scm
@@ -48,6 +48,7 @@
#:use-module (gnu packages docbook)
#:use-module (gnu packages graphviz)
#:use-module (gnu packages elf)
+ #:use-module (gnu packages flex)
#:use-module (gnu packages perl)
#:use-module (guix packages)
#:use-module (guix download)
@@ -1247,6 +1248,17 @@ as the 'native-search-paths' field."
(custom-gcc gcc "gdc" '("d")
%generic-search-paths)))
+(define-public gm2
+ (hidden-package
+ (let ((base (custom-gcc gcc-14
+ "gm2" '("m2")
+ %generic-search-paths)))
+ (package
+ (inherit base)
+ (native-inputs
+ (modify-inputs (package-native-inputs base)
+ (prepend flex)))))))
+
(define-public (make-libgccjit gcc)
(package
(inherit gcc)