MINGW-packages/mingw-w64-v8/006-support-clang-in-mingw-mode.patch
Raed Rizqie bf99396a2e v8: update to 14.0.210
- rebase some patches
- disable external startup data (using internal instead)
- enable monolithic library
2025-07-25 14:04:21 +00:00

37 lines
1.3 KiB
Diff

diff --git a/include/v8config.h b/include/v8config.h
index 57b537e6..e3467c72 100644
--- a/include/v8config.h
+++ b/include/v8config.h
@@ -372,6 +372,13 @@ path. Add it with -I<path> to the command line
#if defined(__GNUC__) // Clang in gcc mode.
# define V8_CC_GNU 1
+# if defined(__MINGW32__)
+# define V8_CC_MINGW32 1
+# endif
+# if defined(__MINGW64__)
+# define V8_CC_MINGW64 1
+# endif
+# define V8_CC_MINGW (V8_CC_MINGW32 || V8_CC_MINGW64)
#endif
# define V8_HAS_ATTRIBUTE_ALWAYS_INLINE (__has_attribute(always_inline))
@@ -870,7 +877,7 @@ V8 shared library set USING_V8_SHARED.
#elif defined(_M_IX86) || defined(__i386__)
#define V8_HOST_ARCH_IA32 1
#define V8_HOST_ARCH_32_BIT 1
-#elif defined(__AARCH64EL__) || defined(_M_ARM64)
+#elif defined(__AARCH64EL__) || defined(_M_ARM64) || defined(__aarch64__)
#define V8_HOST_ARCH_ARM64 1
#define V8_HOST_ARCH_64_BIT 1
#elif defined(__ARMEL__)
@@ -916,7 +923,7 @@ V8 shared library set USING_V8_SHARED.
#define V8_TARGET_ARCH_X64 1
#elif defined(_M_IX86) || defined(__i386__)
#define V8_TARGET_ARCH_IA32 1
-#elif defined(__AARCH64EL__) || defined(_M_ARM64)
+#elif defined(__AARCH64EL__) || defined(_M_ARM64) || defined(__aarch64__)
#define V8_TARGET_ARCH_ARM64 1
#elif defined(__ARMEL__)
#define V8_TARGET_ARCH_ARM 1