gnu: webkitgtk: Really disable SSE2 on non-x86_64 achitectures.
This is a followup to d82fd7c2dd
.
* gnu/packages/webkit.scm (webkitgtk)[phases]{disable-sse2}: Adjust.
Co-authored-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
This commit is contained in:
parent
b2022a09eb
commit
d13d5f3141
1 changed files with 7 additions and 7 deletions
|
@ -295,13 +295,6 @@ acceleration in mind, leveraging common 3D graphics APIs for best performance.")
|
||||||
(("libWPEBackend-fdo-([\\.0-9]+)\\.so" all version)
|
(("libWPEBackend-fdo-([\\.0-9]+)\\.so" all version)
|
||||||
(string-append wpebackend-fdo "/lib/" all)))
|
(string-append wpebackend-fdo "/lib/" all)))
|
||||||
#t)))
|
#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
|
(add-before 'configure 'prepare-build-environment
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
(setenv "CC" "clang")
|
(setenv "CC" "clang")
|
||||||
|
@ -314,6 +307,13 @@ acceleration in mind, leveraging common 3D graphics APIs for best performance.")
|
||||||
"#define USE_MUL_OVERFLOW 0")))
|
"#define USE_MUL_OVERFLOW 0")))
|
||||||
'())
|
'())
|
||||||
#t))
|
#t))
|
||||||
|
,@(if (target-x86-64?)
|
||||||
|
'()
|
||||||
|
'((add-after 'unpack 'disable-sse2
|
||||||
|
(lambda _
|
||||||
|
(substitute* "Source/cmake/WebKitCompilerFlags.cmake"
|
||||||
|
(("WTF_CPU_X86 AND NOT CMAKE_CROSSCOMPILING")
|
||||||
|
"FALSE"))))))
|
||||||
(add-after 'install 'move-doc-files
|
(add-after 'install 'move-doc-files
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(let ((out (assoc-ref outputs "out"))
|
(let ((out (assoc-ref outputs "out"))
|
||||||
|
|
Reference in a new issue