aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2023-09-11 15:13:59 +0100
committerChristopher Baines <mail@cbaines.net>2023-09-12 13:11:00 +0100
commit8f59645a21c185cf17c0297ede804cb079bdb0aa (patch)
tree797870b4899e59f784725d8788d87427fdbcfdb4
parentfff324e4e1592c1951f7481e9325faa8860954bf (diff)
downloadnar-herder-8f59645a21c185cf17c0297ede804cb079bdb0aa.tar
nar-herder-8f59645a21c185cf17c0297ede804cb079bdb0aa.tar.gz
Don't use JIT on aarch64
As there's bugs which cause parts of the program to execute more than once https://github.com/wingo/fibers/issues/83
-rw-r--r--scripts/nar-herder.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/nar-herder.in b/scripts/nar-herder.in
index 1dfbc6c..e55fb9b 100644
--- a/scripts/nar-herder.in
+++ b/scripts/nar-herder.in
@@ -22,6 +22,11 @@
;;; along with the guix-data-service. If not, see
;;; <http://www.gnu.org/licenses/>.
+(when (and (string-prefix? "aarch64-" %host-type)
+ (not (getenv "GUILE_JIT_THRESHOLD")))
+ (setenv "GUILE_JIT_THRESHOLD" "-1")
+ (apply execlp (car (command-line)) (command-line)))
+
(setvbuf (current-output-port) 'line)
(setvbuf (current-error-port) 'line)