aboutsummaryrefslogtreecommitdiff
path: root/ports/angle/002-fix-linux.patch
diff options
context:
space:
mode:
authorNancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>2019-09-29 10:25:14 -0700
committerCurtis J Bezault <curtbezault@gmail.com>2019-09-29 10:25:14 -0700
commita07cd2ecc416f9efd595ee7a14b54275061d79bf (patch)
tree0db4b2980fe1490a47b44b27199e6d4fae89a6c1 /ports/angle/002-fix-linux.patch
parente81eceefa78c8e71ed1bd070a345037ab2306ea4 (diff)
downloadvcpkg-a07cd2ecc416f9efd595ee7a14b54275061d79bf.tar.gz
vcpkg-a07cd2ecc416f9efd595ee7a14b54275061d79bf.zip
[angle] Update to the latest commit. (#7329)
* [angle] Update to the latest commit. * Fix build linux. * Update CMakeList.txt and linux patch. * update to latest * Disable OpenGL deprecation warnings * Update CMakeLists.txt * include objective c files * don't filter any files out of common (same as upstream autotools) * drop unit tests so we don't bring in gtest * add filter mode * add back filter except for android
Diffstat (limited to 'ports/angle/002-fix-linux.patch')
-rw-r--r--ports/angle/002-fix-linux.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/ports/angle/002-fix-linux.patch b/ports/angle/002-fix-linux.patch
new file mode 100644
index 000000000..283d49448
--- /dev/null
+++ b/ports/angle/002-fix-linux.patch
@@ -0,0 +1,28 @@
+diff --git a/src/common/mathutil.h b/src/common/mathutil.h
+index bdf8c2a..d2aa5dd 100644
+--- a/src/common/mathutil.h
++++ b/src/common/mathutil.h
+@@ -21,6 +21,10 @@
+ #include "common/debug.h"
+ #include "common/platform.h"
+
++#if defined(__GNUC__)
++#include <x86intrin.h>
++#endif
++
+ namespace angle
+ {
+ using base::CheckedNumeric;
+@@ -1260,6 +1264,12 @@ inline constexpr unsigned int UnsignedCeilDivide(unsigned int value, unsigned in
+ # define ANGLE_ROTL64(x, y) _rotl64(x, y)
+ # define ANGLE_ROTR16(x, y) _rotr16(x, y)
+
++#elif defined(__GNUC__)
++
++# define ANGLE_ROTL(x, y) __rold(x, y)
++# define ANGLE_ROTL64(x, y) __rolq(x, y)
++# define ANGLE_ROTR16(x, y) __rolw(x, y)
++
+ #elif defined(__clang__) && __has_builtin(__builtin_rotateleft32) && \
+ __has_builtin(__builtin_rotateleft64) && __has_builtin(__builtin_rotateright16)
+