Skip to content

Commit 729764a

Browse files
Vasili Skurydzinrvagg
Vasili Skurydzin
authored andcommitted
deps: V8: Add virtual dtor to avoid aix gcc error
deps/v8/src/torque/file-visitor.h: * Not currently present in v8/master deps/v8/third_party/antlr4/BUILD.gn: * Use current_os variable to avoid is_aix being undefined. The following patch to v8/build solves this issue for v8/master: * a1a12ef3b343f9e75c630ed6dc8f1ea44a8a747b However, the version of '/chromium/src/build.git' cannot be updated to include this patch in v8/DEPS file. (could potentially cause issues for other platforms) The change to deps/v8/src/torque/file-visitor.h is a workaround for origin/v10.x-staging branch. PR-URL: #23695 Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Yang Guo <[email protected]> Reviewed-By: Ujjwal Sharma <[email protected]>
1 parent 828ac19 commit 729764a

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

Diff for: common.gypi

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
# Reset this number to 0 on major V8 upgrades.
3535
# Increment by one for each non-official patch applied to deps/v8.
36-
'v8_embedder_string': '-node.43',
36+
'v8_embedder_string': '-node.44',
3737

3838
# Enable disassembler for `--print-code` v8 options
3939
'v8_enable_disassembler': 1,

Diff for: deps/v8/src/torque/file-visitor.h

+4
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ namespace torque {
2121

2222
class FileVisitor {
2323
public:
24+
#if defined(__GNUC__) && V8_OS_AIX
25+
// prevent non-virtual-dtor gcc error on Aix
26+
virtual ~FileVisitor() = default;
27+
#endif
2428
explicit FileVisitor(GlobalContext& global_context)
2529
: global_context_(global_context),
2630
declarations_(global_context.declarations()),

Diff for: deps/v8/third_party/antlr4/BUILD.gn

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ config("antlr-compatibility") {
99
"-Wno-unused-but-set-variable",
1010
]
1111
}
12-
if (is_aix) {
12+
if (current_os == "aix") {
1313
cflags += [ "-fdollars-in-identifiers" ]
1414
}
1515
}

0 commit comments

Comments
 (0)