diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2025-07-09 09:44:10 +0300 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2025-07-17 20:29:48 +0300 |
commit | 945c6ff9f222efed460ce8ab31fb6911f89436c9 (patch) | |
tree | b9e25f834e80adccb43ad7d1cd8b9346e5d9a9ed /guix | |
parent | 758e79730cb13de49b95d0ec3eb1c83766166c94 (diff) |
guix: lint: Find more hardcoded compiler targets.
* guix/lint.scm (check-compiler-for-target): Adjust the logic when
checking the make-flags to actually determine if it is a gexp or not.
* tests/lint.scm (compiler-for-target: looks through G-expressions): Fix
test.
Change-Id: I0040cf29c8197d394e63ac90b2fba7ca5bcb5861
Diffstat (limited to 'guix')
-rw-r--r-- | guix/lint.scm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/guix/lint.scm b/guix/lint.scm index deea25c5ce..aae10fe492 100644 --- a/guix/lint.scm +++ b/guix/lint.scm @@ -355,9 +355,9 @@ superfluous when building natively and incorrect when cross-compiling." (_ '()))) (parameterize ((%current-target-system "aarch64-linux-gnu")) (apply (lambda* (#:key (target 'not-set) - make-flags #:allow-other-keys) + make-flags #:allow-other-keys) (define make-flags/sexp - (if (gexp? make-flags/sexp) + (if (gexp? make-flags) (gexp->approximate-sexp make-flags) make-flags)) ;; Some packages like 'tzdata' are never cross-compiled; |