build: Update Guix build and install.
[mes.git] / module / language / c99 / compiler.mes
index 3da8fc9acc8c465b4b34e9ac0bcffcb2e8407621..30f7f8d525ca6d780a09530e1a5d41c42861bdf1 100644 (file)
@@ -49,7 +49,7 @@
 (define (mescc)
   (parse-c99
    #:inc-dirs (string-split (getenv "C_INCLUDE_PATH") #\:)
-   #:cpp-defs '(
+   #:cpp-defs `(
                 "_POSIX_SOURCE=0"
                 "__GNUC__=0"
                 "__MESC__=1"
                 "INT_MIN=-2147483648"
                 "INT_MAX=2147483647"
 
-                "VERSION=\"0.4\""
-                "PREFIX=\"\""
+                ,(string-append "DATADIR=\"" %datadir "\"")
+                ,(string-append "DOCDIR=\"" %docdir "\"")
+                ,(string-append "PREFIX=\"" %prefix "\"")
+                ,(string-append "MODULEDIR=\"" %moduledir "\"")
+                ,(string-append "VERSION=\"" %version "\"")
                 )
    #:mode 'code))