From 972dba94e64123378d351de52c7b951e62c6b6d5 Mon Sep 17 00:00:00 2001 From: Matthew Butterick Date: Wed, 6 May 2020 09:54:52 -0700 Subject: [PATCH] compat for 6.3 --- pollen/private/cache-utils.rkt | 8 ++++++-- pollen/private/ts.rktd | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/pollen/private/cache-utils.rkt b/pollen/private/cache-utils.rkt index 36081b9..9b7025f 100644 --- a/pollen/private/cache-utils.rkt +++ b/pollen/private/cache-utils.rkt @@ -60,11 +60,15 @@ (define-namespace-anchor cache-utils-module-ns) (define my-caching-compile-proc (make-caching-managed-compile-zo)) +;; check 'gc not 'vm because 'gc is supported before 6.7 +(define running-on-cs? (eq? (system-type 'gc) 'cs)) + (define (path->hash path) (for ([p (in-list (or (get-directory-require-files path) null))]) (my-caching-compile-proc p)) - (when (eq? (system-type 'vm) 'chez-scheme) - ;; this makes builds faster, but a bytecode-caching bug in Racket BC + (when running-on-cs? + ;; this makes builds faster, + ;; but a bytecode-caching bug in Racket BC ;; restricts it to CS for now (my-caching-compile-proc path)) (apply hasheq diff --git a/pollen/private/ts.rktd b/pollen/private/ts.rktd index fbc5c5e..e3a825f 100644 --- a/pollen/private/ts.rktd +++ b/pollen/private/ts.rktd @@ -1 +1 @@ -1588777265 +1588784092