diff options
author | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2021-05-12 05:14:34 +0800 |
---|---|---|
committer | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2021-05-12 05:46:59 +0800 |
commit | 4b783f69ff097b9008ff177d3946004cbddf176d (patch) | |
tree | eeb690d164610b66d01049daa7695cd1028a2ef0 /lang/v8/files/patch-include_v8config.h | |
parent | graphics/opencollada: Convert REINPLACE_CMD to patch file (diff) |
lang/v8: Update to 9.0.257.23
- Use SUB_FILES for pkgconfig files (v8*.pc)
- Sort PLIST
- Update pkg-descr
- Update WWW
Changes: https://v8.dev/blog/v8-release-89
https://v8.dev/blog/v8-release-90
Diffstat (limited to 'lang/v8/files/patch-include_v8config.h')
-rw-r--r-- | lang/v8/files/patch-include_v8config.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lang/v8/files/patch-include_v8config.h b/lang/v8/files/patch-include_v8config.h new file mode 100644 index 000000000000..5b3e5a7df644 --- /dev/null +++ b/lang/v8/files/patch-include_v8config.h @@ -0,0 +1,21 @@ +--- include/v8config.h.orig 2021-04-22 15:00:28 UTC ++++ include/v8config.h +@@ -293,7 +293,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)) |