gnu: webkitgtk: Improve the 32-bit x86 target check.

* gnu/packages/webkit.scm (webkitgtk)[arguments]: In the
'prepare-build-environment' phase, use 'target-x86-32?'.
This commit is contained in:
Mark H Weaver 2021-11-06 05:31:04 -04:00
parent b0519cc4b0
commit b11badfb4c
No known key found for this signature in database
GPG key ID: 7CEF29847562C516

View file

@ -308,7 +308,7 @@ (define-public webkitgtk
(setenv "CXX" "clang++")
;; XXX Until we switch back to using GCC,
;; work around <https://bugs.gnu.org/51591>.
,@(if (string=? "i686-linux" (%current-system))
,@(if (target-x86-32?)
'((substitute* "Source/WTF/wtf/CheckedArithmetic.h"
(("#define USE_MUL_OVERFLOW 1")
"#define USE_MUL_OVERFLOW 0")))