Skip to content

Commit

Permalink
[qt5-webkit] arm64-osx compat
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Feb 3, 2024
1 parent 7d9a42c commit 5b6a4bc
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
19 changes: 19 additions & 0 deletions vcpkg/overlay/qt5-webkit/arm64-osx.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
--- ./Source/JavaScriptCore/assembler/ARM64Assembler.h.orig 2022-12-30 16:08:07.402011556 +1000
+++ ./Source/JavaScriptCore/assembler/ARM64Assembler.h 2022-12-30 17:01:36.035938629 +1000
@@ -34,6 +34,7 @@
#include <wtf/Assertions.h>
#include <wtf/Vector.h>
#include <stdint.h>
+#include <libkern/OSCacheControl.h>

#define CHECK_DATASIZE_OF(datasize) ASSERT(datasize == 32 || datasize == 64)
#define DATASIZE_OF(datasize) ((datasize == 64) ? Datasize_64 : Datasize_32)
@@ -2664,7 +2665,7 @@

static void cacheFlush(void* code, size_t size)
{
-#if OS(IOS)
+#if OS(DARWIN)
sys_cache_control(kCacheFunctionPrepareForExecution, code, size);
#elif OS(LINUX)
size_t page = pageSize();
1 change: 1 addition & 0 deletions vcpkg/overlay/qt5-webkit/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ vcpkg_from_github(
icu_targets.patch
osgeo4w.patch
makevalues_gperf.patch
arm64-osx.patch
)

file(REMOVE ${SOURCE_PATH}/Source/cmake/FindICU.cmake)
Expand Down

0 comments on commit 5b6a4bc

Please sign in to comment.