diff options
| -rw-r--r-- | build-aux/compile-all.scm | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/build-aux/compile-all.scm b/build-aux/compile-all.scm index ad75e33a854..e6982f50fbf 100644 --- a/build-aux/compile-all.scm +++ b/build-aux/compile-all.scm | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; GNU Guix --- Functional package management for GNU | 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2016 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com> | 2 | ;;; Copyright © 2016 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com> |
| 3 | ;;; Copyright © 2016, 2017, 2019, 2020 Ludovic Courtès <ludo@gnu.org> | 3 | ;;; Copyright © 2016, 2017, 2019, 2020, 2021 Ludovic Courtès <ludo@gnu.org> |
| 4 | ;;; | 4 | ;;; |
| 5 | ;;; This file is part of GNU Guix. | 5 | ;;; This file is part of GNU Guix. |
| 6 | ;;; | 6 | ;;; |
| @@ -132,11 +132,8 @@ to 'make'." | |||
| 132 | (false-if-exception | 132 | (false-if-exception |
| 133 | (module-ref ui 'report-load-error))))) | 133 | (module-ref ui 'report-load-error))))) |
| 134 | (if report | 134 | (if report |
| 135 | ;; In Guile <= 2.2.5, 'current-load-port' was not exported. | 135 | (report (or (and=> (current-load-port) port-filename) "?.scm") |
| 136 | (let ((load-port ((module-ref (resolve-module '(ice-9 ports)) | 136 | args frame) |
| 137 | 'current-load-port)))) | ||
| 138 | (report (or (and=> load-port port-filename) "?.scm") | ||
| 139 | args frame)) | ||
| 140 | (begin | 137 | (begin |
| 141 | (print-exception (current-error-port) frame | 138 | (print-exception (current-error-port) frame |
| 142 | (car args) (cdr args)) | 139 | (car args) (cdr args)) |
