Skip to content

Commit a82c5ed

Browse files
committed
contrib/nodejs: try fix riscv64 build
1 parent 153bce9 commit a82c5ed

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
--- a/tools/v8_gypfiles/v8.gyp
2+
+++ b/tools/v8_gypfiles/v8.gyp
3+
@@ -779,6 +779,15 @@
4+
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_i18n_support.*?v8_current_cpu == \\"riscv64\\".*?v8_enable_sparkplug.*?sources \\+= ")',
5+
],
6+
}],
7+
+ ['v8_enable_webassembly==1', {
8+
+ 'conditions': [
9+
+ ['OS=="linux"', {
10+
+ 'sources': [
11+
+ '<(V8_ROOT)/src/trap-handler/handler-inside-posix.h',
12+
+ ],
13+
+ }],
14+
+ ],
15+
+ }],
16+
],
17+
}],
18+
['v8_target_arch=="loong64"', {
19+
@@ -1150,6 +1159,18 @@
20+
'sources': [
21+
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?v8_enable_wasm_gdb_remote_debugging.*?v8_current_cpu == \\"riscv64\\".*?sources \\+= ")',
22+
],
23+
+ 'conditions': [
24+
+ ['v8_enable_webassembly==1', {
25+
+ 'conditions': [
26+
+ ['OS=="linux"', {
27+
+ 'sources': [
28+
+ '<(V8_ROOT)/src/trap-handler/handler-inside-posix.cc',
29+
+ '<(V8_ROOT)/src/trap-handler/handler-outside-posix.cc',
30+
+ ],
31+
+ }],
32+
+ ],
33+
+ }],
34+
+ ],
35+
}],
36+
['v8_target_arch=="loong64"', {
37+
'sources': [

0 commit comments

Comments
 (0)