diff options
author | Robert Nagy <rnagy@FreeBSD.org> | 2023-04-05 14:02:20 +0200 |
---|---|---|
committer | Robert Nagy <rnagy@FreeBSD.org> | 2023-04-09 13:01:04 +0200 |
commit | 6355e9a61303218c2cb04052e130b97fbbcab467 (patch) | |
tree | bf5bbcfaa01e7efc2ff11bcc3ac31517f3be4cf4 /www/chromium/files/patch-v8_include_v8config.h | |
parent | multimedia/subtitlecomposer: update to git snapshot 2023.04.04 (diff) |
www/chromium: update to 112.0.5615.49
Approved by: rene (mentor)
Security: https://vuxml.freebsd.org/freebsd/3d5581ff-d388-11ed-8581-a8a1599412c6.html
Differential Revision: https://reviews.freebsd.org/D39432
Diffstat (limited to 'www/chromium/files/patch-v8_include_v8config.h')
-rw-r--r-- | www/chromium/files/patch-v8_include_v8config.h | 44 |
1 files changed, 14 insertions, 30 deletions
diff --git a/www/chromium/files/patch-v8_include_v8config.h b/www/chromium/files/patch-v8_include_v8config.h index 2731df78fdac..608a7185e114 100644 --- a/www/chromium/files/patch-v8_include_v8config.h +++ b/www/chromium/files/patch-v8_include_v8config.h @@ -1,27 +1,29 @@ ---- v8/include/v8config.h.orig 2023-03-15 07:46:50 UTC +--- v8/include/v8config.h.orig 2023-04-05 11:05:06 UTC +++ v8/include/v8config.h -@@ -183,6 +183,8 @@ path. Add it with -I<path> to the command line +@@ -184,6 +184,8 @@ path. Add it with -I<path> to the command line && !defined(V8_TARGET_OS_FUCHSIA) \ && !defined(V8_TARGET_OS_IOS) \ && !defined(V8_TARGET_OS_LINUX) \ + && !defined(V8_TARGET_OS_OPENBSD) \ + && !defined(V8_TARGET_OS_FREEBSD) \ && !defined(V8_TARGET_OS_MACOS) \ - && !defined(V8_TARGET_OS_WIN) - # error No known target OS defined. -@@ -194,6 +196,8 @@ path. Add it with -I<path> to the command line + && !defined(V8_TARGET_OS_WIN) \ + && !defined(V8_TARGET_OS_CHROMEOS) +@@ -196,6 +198,8 @@ path. Add it with -I<path> to the command line || defined(V8_TARGET_OS_FUCHSIA) \ || defined(V8_TARGET_OS_IOS) \ || defined(V8_TARGET_OS_LINUX) \ + || defined(V8_TARGET_OS_OPENBSD) \ + || defined(V8_TARGET_OS_FREEBSD) \ || defined(V8_TARGET_OS_MACOS) \ - || defined(V8_TARGET_OS_WIN) - # error A target OS is defined but V8_HAVE_TARGET_OS is unset. -@@ -216,6 +220,16 @@ path. Add it with -I<path> to the command line - # define V8_TARGET_OS_LINUX - #endif + || defined(V8_TARGET_OS_WIN) \ + || defined(V8_TARGET_OS_CHROMEOS) +@@ -217,6 +221,16 @@ path. Add it with -I<path> to the command line + #ifdef V8_OS_LINUX + # define V8_TARGET_OS_LINUX ++#endif ++ +#ifdef V8_OS_OPENBSD +# define V8_TARGET_OS_OPENBSD +# define V8_TARGET_OS_BSD @@ -30,24 +32,6 @@ +#ifdef V8_OS_FREEBSD +# define V8_TARGET_OS_OPENBSD +# define V8_TARGET_OS_BSD -+#endif -+ - #ifdef V8_OS_MACOS - # define V8_TARGET_OS_MACOS - #endif -@@ -351,10 +365,14 @@ path. Add it with -I<path> to the command line - // - component builds fail because _dl_runtime_resolve clobbers registers, - // - we see crashes on arm64 on Windows (https://crbug.com/1409934), which can - // hopefully be fixed in the future. -+// Additionally, the initial implementation in clang <= 16 overwrote the return -+// register(s) in the epilogue of a preserve_most function, so we only use -+// preserve_most in clang >= 17 (see https://reviews.llvm.org/D143425). - #if (defined(_M_X64) || defined(__x86_64__) /* x64 (everywhere) */ \ - || ((defined(__AARCH64EL__) || defined(_M_ARM64)) /* arm64, but ... */ \ - && !defined(_WIN32))) /* not on windows */ \ -- && !defined(COMPONENT_BUILD) /* no component build */ -+ && !defined(COMPONENT_BUILD) /* no component build */\ -+ && __clang_major__ >= 17 /* clang >= 17 */ - # define V8_HAS_ATTRIBUTE_PRESERVE_MOST (__has_attribute(preserve_most)) #endif - # define V8_HAS_ATTRIBUTE_VISIBILITY (__has_attribute(visibility)) + + #ifdef V8_OS_MACOS |