mirror of
https://github.com/janet-lang/janet
synced 2024-11-25 09:47:17 +00:00
95dbad6ec1
When compiling Janet with `JANET_REDUCED_OS`, `os/date` will not be available which breaks the tool amalg.janet. One can check file modification time on the filesystem instead.
13 lines
357 B
Clojure
13 lines
357 B
Clojure
# Creates an amalgamated janet.c
|
|
|
|
# Head
|
|
(print "/* Amalgamated build - DO NOT EDIT */")
|
|
(print "/* Generated from janet version " janet/version "-" janet/build " */")
|
|
(print "#define JANET_BUILD \"" janet/build "\"")
|
|
(print ```#define JANET_AMALG```)
|
|
(print ```#include "janet.h"```)
|
|
|
|
# Body
|
|
(each path (tuple/slice process/args 2)
|
|
(print (slurp path)))
|