File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 36
36
37
37
# Reset this number to 0 on major V8 upgrades.
38
38
# Increment by one for each non-official patch applied to deps/v8.
39
- 'v8_embedder_string' : '-node.15 ' ,
39
+ 'v8_embedder_string' : '-node.16 ' ,
40
40
41
41
##### V8 defaults for Node.js #####
42
42
Original file line number Diff line number Diff line change @@ -173,14 +173,17 @@ namespace base {
173
173
// base::is_trivially_copyable will differ for these cases.
174
174
template <typename T>
175
175
struct is_trivially_copyable {
176
- #if V8_CC_MSVC
176
+ #if V8_CC_MSVC || (__GNUC__ == 12 && __GNUC_MINOR__ == 2)
177
177
// Unfortunately, MSVC 2015 is broken in that std::is_trivially_copyable can
178
178
// be false even though it should be true according to the standard.
179
179
// (status at 2018-02-26, observed on the msvc waterfall bot).
180
180
// Interestingly, the lower-level primitives used below are working as
181
181
// intended, so we reimplement this according to the standard.
182
182
// See also https://developercommunity.visualstudio.com/content/problem/
183
183
// 170883/msvc-type-traits-stdis-trivial-is-bugged.html.
184
+ //
185
+ // GCC 12.2 is broken too, so the same polyfill is used.
186
+ // See: https://github.com./nodejs/node/pull/45427
184
187
static constexpr bool value =
185
188
// Copy constructor is trivial or deleted.
186
189
(std::is_trivially_copy_constructible<T>::value ||
You can’t perform that action at this time.
0 commit comments