mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-15 15:37:54 -05:00
build-system/cargo: Do not pass --features to Cargo unless specified.
Fixes <https://bugs.gnu.org/44692>. * guix/build/cargo-build-system.scm (build): Default to the empty list for FEATURES. Check whether the list is empty when building the Cargo arguments.
This commit is contained in:
parent
007edfb72a
commit
be8a0881f1
1 changed files with 8 additions and 4 deletions
|
@ -4,6 +4,7 @@
|
|||
;;; Copyright © 2019 Ivan Petkov <ivanppetkov@gmail.com>
|
||||
;;; Copyright © 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
|
||||
;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
|
||||
;;; Copyright © 2020 Marius Bakke <marius@gnu.org>
|
||||
;;;
|
||||
;;; This file is part of GNU Guix.
|
||||
;;;
|
||||
|
@ -141,14 +142,17 @@ (define* (patch-cargo-checksums #:key
|
|||
|
||||
(define* (build #:key
|
||||
skip-build?
|
||||
features
|
||||
(features '())
|
||||
(cargo-build-flags '("--release"))
|
||||
#:allow-other-keys)
|
||||
"Build a given Cargo package."
|
||||
(or skip-build?
|
||||
(apply invoke "cargo" "build"
|
||||
"--features" (string-join features)
|
||||
cargo-build-flags)))
|
||||
(apply invoke
|
||||
`("cargo" "build"
|
||||
,@(if (null? features)
|
||||
'()
|
||||
`("--features" ,(string-join features)))
|
||||
,@cargo-build-flags))))
|
||||
|
||||
(define* (check #:key
|
||||
tests?
|
||||
|
|
Loading…
Reference in a new issue