Skip to content

Commit

Permalink
[qt5-webkit] fix arm64-osx
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Feb 3, 2024
1 parent 79fb4d4 commit 2a1794c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
19 changes: 19 additions & 0 deletions ports/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 ports/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
1 change: 1 addition & 0 deletions ports/qt5-webkit/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "qt5-webkit",
"version": "5.212.0-alpha4",
"port-version": 1,
"description": "Qt5 port of webkit.",
"homepage": "https://github.com/movableink/webkit",
"dependencies": [
Expand Down

0 comments on commit 2a1794c

Please sign in to comment.