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:
Arun Isaac 2022-03-31 12:58:48 +05:30 committed by Efraim Flashner
parent a83918837e
commit 8524904e08
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -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?