diff options
author | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2021-11-01 21:23:13 +0800 |
---|---|---|
committer | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2021-11-01 21:41:20 +0800 |
commit | f366d96316722f0acfe0183f844e6fd3d6a5d80a (patch) | |
tree | 808dd1232fb31124178da216b9c5d7d288a9eba8 /lang/v8-beta/files/patch-include_v8config.h | |
parent | databases/caterva: Add caterva 0.5.0 (diff) |
lang/v8-beta: Add v8-beta 9.6.180.5
Changes: https://v8.dev/blog/v8-release-96
https://chromium.googlesource.com/v8/v8.git/+log/refs/heads/9.6-lkgr
https://github.com/v8/v8/commits/9.6-lkgr
Diffstat (limited to 'lang/v8-beta/files/patch-include_v8config.h')
-rw-r--r-- | lang/v8-beta/files/patch-include_v8config.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lang/v8-beta/files/patch-include_v8config.h b/lang/v8-beta/files/patch-include_v8config.h new file mode 100644 index 000000000000..2a1c5e2972e9 --- /dev/null +++ b/lang/v8-beta/files/patch-include_v8config.h @@ -0,0 +1,21 @@ +--- include/v8config.h.orig 2021-10-06 18:22:58 UTC ++++ include/v8config.h +@@ -338,7 +338,18 @@ path. Add it with -I<path> to the command line + + # define V8_HAS_CPP_ATTRIBUTE_NODISCARD (V8_HAS_CPP_ATTRIBUTE(nodiscard)) + ++// Work around Clang bug present in 9.0.1, at least. ++// ++// Clang stores alignment as a 32-bit unsigned integer, but V8 only uses ++// V8_ASSUME_ALIGNED() for a 4GB (2^32) alignment ++// (kPtrComprIsolateRootAlignment). As such, the alignment overflows and ++// becomes zero, triggering an internal Clang assertion that alignment must not ++// be zero. ++#if 0 + # define V8_HAS_BUILTIN_ASSUME_ALIGNED (__has_builtin(__builtin_assume_aligned)) ++#else ++# define V8_HAS_BUILTIN_ASSUME_ALIGNED 0 ++#endif + # define V8_HAS_BUILTIN_BSWAP16 (__has_builtin(__builtin_bswap16)) + # define V8_HAS_BUILTIN_BSWAP32 (__has_builtin(__builtin_bswap32)) + # define V8_HAS_BUILTIN_BSWAP64 (__has_builtin(__builtin_bswap64)) |