Skip to content

Commit 62476a3

Browse files
authored
Work around clang 15 compiler bug (#57)
Refs: nodejs/node#54576
1 parent b305a1e commit 62476a3

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

libexec/extract-node

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ cd "${src}/node-v${version}"
3232
#patch -p1 < "${top}"/patch/gyp-libv8_monolith.patch
3333
#patch -p1 < "${top}"/patch/py2-icutrim.patch
3434
#patch -p1 < "${top}"/patch/py2-genv8constants.patch
35+
patch -p1 < "${top}"/patch/v8-no-assert-trivially-copyable.patch
3536
patch -p1 < "${top}"/patch/v8-disable-madv-dontfork.patch
3637
patch -p1 < "${top}"/patch/v8-disable-pkey.patch
3738

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
diff --git a/deps/v8/src/base/small-vector.h b/deps/v8/src/base/small-vector.h
2+
index edaab3a7a6..533a536178 100644
3+
--- a/deps/v8/src/base/small-vector.h
4+
+++ b/deps/v8/src/base/small-vector.h
5+
@@ -20,9 +20,6 @@ namespace base {
6+
// dynamic storage when it overflows.
7+
template <typename T, size_t kSize, typename Allocator = std::allocator<T>>
8+
class SmallVector {
9+
- // Currently only support trivially copyable and trivially destructible data
10+
- // types, as it uses memcpy to copy elements and never calls destructors.
11+
- ASSERT_TRIVIALLY_COPYABLE(T);
12+
static_assert(std::is_trivially_destructible<T>::value);
13+
14+
public:

0 commit comments

Comments
 (0)