mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-14 23:20:29 -05:00
gnu: check2: Fix tests on i686-linux.
Reported upstream to <https://github.com/catchorg/Catch2/issues/2796>. It is expected that SSE2 is enabled for i686 builds or tests fail. * gnu/packages/check.scm (check2)[arguments]: Enable SSE2 for x86_64-linux and i686-linux in configure-flags. Co-authored-by: Richard Sent <richard@freakingpenguin.com> Co-authored-by: Jo Gay <@jane.lx.gay> Change-Id: I99205f92b66ab3d10affbfb58918f37069ba82ec
This commit is contained in:
parent
31e736dac2
commit
18393fcddd
1 changed files with 9 additions and 1 deletions
|
@ -108,6 +108,7 @@ (define-module (gnu packages check)
|
|||
#:use-module (guix build-system python)
|
||||
#:use-module (guix build-system trivial)
|
||||
#:use-module (guix deprecation)
|
||||
#:use-module (ice-9 match)
|
||||
#:use-module (srfi srfi-1))
|
||||
|
||||
(define-public pict
|
||||
|
@ -621,7 +622,14 @@ (define-public catch2-3
|
|||
(arguments
|
||||
(list
|
||||
#:configure-flags
|
||||
#~(list "-DCATCH_DEVELOPMENT_BUILD=ON"
|
||||
#~(list #$@(match (%current-system)
|
||||
((or "x86_64-linux" "i686-linux")
|
||||
;; Tests fail on i686-linux without SSE2 for floats, see
|
||||
;; upstream report
|
||||
;; <https://github.com/catchorg/Catch2/issues/2796>.
|
||||
'("-DCMAKE_CXX_FLAGS=-msse2 -mfpmath=sse"))
|
||||
(_ '()))
|
||||
"-DCATCH_DEVELOPMENT_BUILD=ON"
|
||||
"-DCATCH_ENABLE_WERROR=OFF"
|
||||
"-DBUILD_SHARED_LIBS=ON")))
|
||||
(inputs (list python-wrapper))
|
||||
|
|
Loading…
Reference in a new issue