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>master
parent
a83918837e
commit
8524904e08
|
@ -1294,6 +1294,15 @@ provides a number of utilities to make coding with expected cleaner.")
|
||||||
`(#:configure-flags '("-Dbenchmarks=false")
|
`(#:configure-flags '("-Dbenchmarks=false")
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-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
|
(replace 'check
|
||||||
(lambda* (#:key tests? #:allow-other-keys)
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
(when tests?
|
(when tests?
|
||||||
|
|
Reference in New Issue