aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cuirass/base.scm7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cuirass/base.scm b/src/cuirass/base.scm
index f5f80b3..7b73245 100644
--- a/src/cuirass/base.scm
+++ b/src/cuirass/base.scm
@@ -45,6 +45,13 @@
%package-cachedir
%use-substitutes?))
+(cond-expand
+ (guile-2.2
+ ;; Guile 2.2.2 has a bug whereby 'time-monotonic' objects have seconds and
+ ;; nanoseconds swapped (fixed in Guile commit 886ac3e). Work around it.
+ (define time-monotonic time-tai))
+ (else #t))
+
(define %use-substitutes?
;; Define whether to use substitutes
(make-parameter #f))