Skip to content

Commit 72eb710

Browse files
luyahanaduh95
authored andcommitted
tools: fix riscv64 build failed
PR-URL: #52888 Reviewed-By: Stewart X Addison <sxa@redhat.com> Reviewed-By: Richard Lau <rlau@redhat.com>
1 parent 882b70c commit 72eb710

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tools/v8_gypfiles/v8.gyp

+17
Original file line numberDiff line numberDiff line change
@@ -1176,6 +1176,23 @@
11761176
'sources': [
11771177
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?v8_enable_wasm_gdb_remote_debugging.*?v8_current_cpu == \\"riscv64\\".*?sources \\+= ")',
11781178
],
1179+
'conditions': [
1180+
['v8_enable_webassembly==1', {
1181+
'conditions': [
1182+
['((_toolset=="host" and host_arch=="riscv64" or _toolset=="target" and target_arch=="riscv64") and (OS=="linux")) or ((_toolset=="host" and host_arch=="x64" or _toolset=="target" and target_arch=="x64") and (OS=="linux"))', {
1183+
'sources': [
1184+
'<(V8_ROOT)/src/trap-handler/handler-inside-posix.cc',
1185+
'<(V8_ROOT)/src/trap-handler/handler-outside-posix.cc',
1186+
],
1187+
}],
1188+
['(_toolset=="host" and host_arch=="x64" or _toolset=="target" and target_arch=="x64") and (OS=="linux")', {
1189+
'sources': [
1190+
'<(V8_ROOT)/src/trap-handler/handler-outside-simulator.cc',
1191+
],
1192+
}],
1193+
],
1194+
}],
1195+
],
11791196
}],
11801197
['v8_target_arch=="loong64"', {
11811198
'sources': [

0 commit comments

Comments
 (0)