mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-26 12:39:36 -05:00
gnu: atomic-queue: Do not look for boost when cross-compiling.
* gnu/packages/cpp.scm (atomic-queue)[arguments]: When cross-compiling, add a do-not-check-for-boost phase. Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
This commit is contained in:
parent
a83918837e
commit
8524904e08
1 changed files with 9 additions and 0 deletions
|
@ -1294,6 +1294,15 @@ (define-public atomic-queue
|
|||
`(#:configure-flags '("-Dbenchmarks=false")
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
,@(if (%current-target-system)
|
||||
`(;; boost is a test dependency. We don't run tests when
|
||||
;; cross-compiling. Disable all targets that depend on it.
|
||||
(add-after 'unpack 'do-not-check-for-boost
|
||||
(lambda _
|
||||
(substitute* "meson.build"
|
||||
(("unit_test_framework = [^\n]*" all)
|
||||
"unit_test_framework = disabler()")))))
|
||||
'())
|
||||
(replace 'check
|
||||
(lambda* (#:key tests? #:allow-other-keys)
|
||||
(when tests?
|
||||
|
|
Loading…
Reference in a new issue