MIRROR: javascript for ๐Ÿœ's, a tiny runtime with big ambitions
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

WAMR patch for windows

+46
+45
vendor/packagefiles/patches/wasm-micro-runtime-windows.patch
··· 1 + diff --git a/core/shared/platform/windows/platform_internal.h b/core/shared/platform/windows/platform_internal.h 2 + index 6cf8f4b..d35cc99 100644 3 + --- a/core/shared/platform/windows/platform_internal.h 4 + +++ b/core/shared/platform/windows/platform_internal.h 5 + @@ -98,7 +98,11 @@ os_mem_commit(void *ptr, size_t size, int flags); 6 + void 7 + os_mem_decommit(void *ptr, size_t size); 8 + 9 + +#if defined(__clang__) 10 + +#define os_thread_local_attribute __thread 11 + +#else 12 + #define os_thread_local_attribute __declspec(thread) 13 + +#endif 14 + 15 + #define strncasecmp _strnicmp 16 + #define strcasecmp _stricmp 17 + diff --git a/core/shared/platform/windows/win_file.c b/core/shared/platform/windows/win_file.c 18 + index ef6ca15..b893f9e 100644 19 + --- a/core/shared/platform/windows/win_file.c 20 + +++ b/core/shared/platform/windows/win_file.c 21 + @@ -1295,12 +1295,12 @@ os_realpath(const char *path, char *resolved_path) 22 + 23 + if (wbufsize >= 4 && wbuf[0] == L'\\' && wbuf[1] == L'?' 24 + && wbuf[2] == L'?' && wbuf[3] == L'\\') { 25 + - // Starts with \??\ 26 + + // Starts with \??\ 27 + if (wbufsize >= 6 28 + && ((wbuf[4] >= L'A' && wbuf[4] <= L'Z') 29 + || (wbuf[4] >= L'a' && wbuf[4] <= L'z')) 30 + && wbuf[5] == L':' && (wbufsize == 6 || wbuf[6] == L'\\')) 31 + { 32 + - // \??\<drive>:\ 33 + + // \??\<drive>:\ 34 + wbuf += 4; 35 + wbufsize -= 4; 36 + } 37 + @@ -1310,7 +1310,7 @@ os_realpath(const char *path, char *resolved_path) 38 + && (wbuf[6] == L'C' || wbuf[6] == L'c') 39 + && wbuf[7] == L'\\') 40 + { 41 + - // \??\UNC\<server>\<share>\ - make sure the final path looks like \\<server>\<share>\ 42 + + // \??\UNC\<server>\<share>\ - make sure the final path looks like \\<server>\<share>\ 43 + wbuf += 6; 44 + wbuf[0] = L'\\'; 45 + wbufsize -= 6;
+1
vendor/wasm-micro-runtime.wrap
··· 3 3 revision = 92f40918bbfad35546a1512b10bd25eaa31add4d 4 4 depth = 1 5 5 patch_directory = wasm-micro-runtime 6 + diff_files = patches/wasm-micro-runtime-windows.patch 6 7 7 8 [provide] 8 9 wasm-micro-runtime = wamr_dep