Browse Source
merge
merge
9 changed files with 91 additions and 15 deletions
-
20.ci/ps4/build.sh
-
17.patch/boost/0004-openorbis.patch
-
13.patch/enet/0001-openorbis.patch
-
13.patch/mbedtls/0002-aesni-fix.patch
-
25.patch/spirv-tools/0003-openorbis.patch
-
3cpmfile.json
-
6externals/cpmfile.json
-
5externals/ffmpeg/CMakeLists.txt
-
4src/common/memory_detect.cpp
@ -0,0 +1,17 @@ |
|||||
|
diff --git a/libs/asio/include/boost/asio/detail/impl/socket_ops.ipp b/libs/asio/include/boost/asio/detail/impl/socket_ops.ipp
|
||||
|
index 0129511c..10fc9b04 100644
|
||||
|
--- a/libs/asio/include/boost/asio/detail/impl/socket_ops.ipp
|
||||
|
+++ b/libs/asio/include/boost/asio/detail/impl/socket_ops.ipp
|
||||
|
@@ -15,6 +15,12 @@
|
||||
|
# pragma once |
||||
|
#endif // defined(_MSC_VER) && (_MSC_VER >= 1200) |
||||
|
|
||||
|
+// hacky fix for ps4
|
||||
|
+#if defined(_LIBCPP_HAS_MUSL_LIBC)
|
||||
|
+# define FIONBIO 0
|
||||
|
+# define FIONREAD 1
|
||||
|
+#endif
|
||||
|
+
|
||||
|
#include <boost/asio/detail/config.hpp> |
||||
|
|
||||
|
#include <cctype> |
||||
@ -0,0 +1,13 @@ |
|||||
|
diff --git a/unix.c b/unix.c
|
||||
|
index 6669216..86a2faa 100644
|
||||
|
--- a/unix.c
|
||||
|
+++ b/unix.c
|
||||
|
@@ -53,7 +53,7 @@
|
||||
|
#include <poll.h> |
||||
|
#endif |
||||
|
|
||||
|
-#if !defined(HAS_SOCKLEN_T) && !defined(__socklen_t_defined)
|
||||
|
+#if !defined(_LIBCPP_HAS_MUSL_LIBC) && !defined(HAS_SOCKLEN_T) && !defined(__socklen_t_defined)
|
||||
|
typedef int socklen_t; |
||||
|
#endif |
||||
|
|
||||
@ -0,0 +1,13 @@ |
|||||
|
diff --git a/library/aesni.h b/library/aesni.h
|
||||
|
index 754c984c79..59e27afd3e 100644
|
||||
|
--- a/library/aesni.h
|
||||
|
+++ b/library/aesni.h
|
||||
|
@@ -35,7 +35,7 @@
|
||||
|
/* GCC-like compilers: currently, we only support intrinsics if the requisite |
||||
|
* target flag is enabled when building the library (e.g. `gcc -mpclmul -msse2` |
||||
|
* or `clang -maes -mpclmul`). */ |
||||
|
-#if (defined(__GNUC__) || defined(__clang__)) && defined(__AES__) && defined(__PCLMUL__)
|
||||
|
+#if (defined(__GNUC__) || defined(__clang__)) && !defined(_LIBCPP_HAS_MUSL_LIBC)
|
||||
|
#define MBEDTLS_AESNI_HAVE_INTRINSICS |
||||
|
#endif |
||||
|
/* For 32-bit, we only support intrinsics */ |
||||
@ -0,0 +1,25 @@ |
|||||
|
diff --git a/source/opt/loop_dependence.cpp b/source/opt/loop_dependence.cpp
|
||||
|
index e41c044..a51b53b 100644
|
||||
|
--- a/source/opt/loop_dependence.cpp
|
||||
|
+++ b/source/opt/loop_dependence.cpp
|
||||
|
@@ -12,6 +12,12 @@
|
||||
|
// See the License for the specific language governing permissions and |
||||
|
// limitations under the License. |
||||
|
|
||||
|
+// PS4: issue?
|
||||
|
+#ifdef __PS4__
|
||||
|
+#pragma clang diagnostic ignored "-Wabsolute-value"
|
||||
|
+#pragma clang diagnostic ignored "-Wshorten-64-to-32"
|
||||
|
+#endif
|
||||
|
+
|
||||
|
#include "source/opt/loop_dependence.h" |
||||
|
|
||||
|
#include <functional> |
||||
|
@@ -19,6 +25,7 @@
|
||||
|
#include <string> |
||||
|
#include <utility> |
||||
|
#include <vector> |
||||
|
+#include <cstdlib>
|
||||
|
|
||||
|
#include "source/opt/instruction.h" |
||||
|
#include "source/opt/scalar_analysis_nodes.h" |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue