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
1 changed files with 1 additions and 1 deletions

View File

@ -308,7 +308,7 @@ acceleration in mind, leveraging common 3D graphics APIs for best performance.")
(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")))