aports/main/nodejs/v8-riscv-trap-handler.patch
2025-11-21 13:37:58 +01:00

19 lines
722 B
Diff

--- a/tools/v8_gypfiles/v8.gyp
+++ b/tools/v8_gypfiles/v8.gyp
@@ -819,6 +819,15 @@
'<!@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 \\+= ")',
],
}],
+ ['v8_enable_webassembly==1', {
+ 'conditions': [
+ ['OS=="linux"', {
+ 'sources': [
+ '<(V8_ROOT)/src/trap-handler/handler-inside-posix.h',
+ ],
+ }],
+ ],
+ }],
],
}],
['v8_target_arch=="loong64"', {