mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-19 05:57:04 +01:00
gnu: webkitgtk: Disable SSE2 when not on x86_64.
* gnu/packages/webkit.scm (webkitgtk)[#:phases]: Add ‘disable-sse2’ if the current (target) system is not an x86_64 one.
This commit is contained in:
parent
3c3131b1c5
commit
d82fd7c2dd
1 changed files with 7 additions and 0 deletions
|
@ -295,6 +295,13 @@ (define-public webkitgtk
|
|||
(("libWPEBackend-fdo-([\\.0-9]+)\\.so" all version)
|
||||
(string-append wpebackend-fdo "/lib/" all)))
|
||||
#t)))
|
||||
,@(if (string-prefix? "x86_64" (or (%current-target-system)
|
||||
(%current-system)))
|
||||
'()
|
||||
'((add-after 'unpack 'disable-sse2
|
||||
(lambda _
|
||||
(substitute* "Source/cmake/DetectSSE2.cmake"
|
||||
(("CHECK_FOR_SSE2\\(\\)") ""))))))
|
||||
(add-before 'configure 'prepare-build-environment
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(setenv "CC" "clang")
|
||||
|
|
Loading…
Reference in a new issue