Fix build on s390x
Resolves: RHEL-63513
This commit is contained in:
parent
c7fecfd43e
commit
75b9561868
13
s390x-build.patch
Normal file
13
s390x-build.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/Source/ThirdParty/ANGLE/src/common/mathutil.h b/Source/ThirdParty/ANGLE/src/common/mathutil.h
|
||||||
|
index 8f4579dc5611..4d981d4427bc 100644
|
||||||
|
--- a/Source/ThirdParty/ANGLE/src/common/mathutil.h
|
||||||
|
+++ b/Source/ThirdParty/ANGLE/src/common/mathutil.h
|
||||||
|
@@ -550,7 +550,7 @@ inline R roundToNearest(T input)
|
||||||
|
{
|
||||||
|
static_assert(std::is_floating_point<T>::value);
|
||||||
|
static_assert(std::numeric_limits<R>::is_integer);
|
||||||
|
-#if defined(__aarch64__) || defined(_M_ARM64)
|
||||||
|
+#if defined(__aarch64__) || defined(_M_ARM64) || defined(__s390x__)
|
||||||
|
// On armv8, this expression is compiled to a dedicated round-to-nearest instruction
|
||||||
|
return static_cast<R>(std::round(input));
|
||||||
|
#else
|
@ -27,6 +27,7 @@ Source2: webkitgtk-keys.gpg
|
|||||||
##
|
##
|
||||||
|
|
||||||
Patch100: compiler-flags.patch
|
Patch100: compiler-flags.patch
|
||||||
|
Patch101: s390x-build.patch
|
||||||
|
|
||||||
##
|
##
|
||||||
## Patches to support older or missing build dependencies
|
## Patches to support older or missing build dependencies
|
||||||
|
Loading…
Reference in New Issue
Block a user