From 95dbad6ec12d1cd3627129af12d0ee65e6b65e3e Mon Sep 17 00:00:00 2001 From: Barakat Date: Tue, 9 Jul 2019 13:49:37 +0300 Subject: [PATCH] Remove amalg.janet dependency on os/date 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. --- tools/amalg.janet | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/amalg.janet b/tools/amalg.janet index fee4cdde..de5f4392 100644 --- a/tools/amalg.janet +++ b/tools/amalg.janet @@ -1,10 +1,8 @@ # Creates an amalgamated janet.c # Head -(def {:year YY :month MM :month-day DD} (os/date)) (print "/* Amalgamated build - DO NOT EDIT */") -(print "/* Generated " YY "-" (inc MM) "-" (inc DD) - " with janet version " janet/version "-" janet/build " */") +(print "/* Generated from janet version " janet/version "-" janet/build " */") (print "#define JANET_BUILD \"" janet/build "\"") (print ```#define JANET_AMALG```) (print ```#include "janet.h"```)