Skip to content

Commit 2674676

Browse files
committed
tools: fix riscv64 build failed
1 parent 22cb99d commit 2674676

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tools/v8_gypfiles/v8.gyp

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1150,6 +1150,23 @@
11501150
'sources': [
11511151
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?v8_enable_wasm_gdb_remote_debugging.*?v8_current_cpu == \\"riscv64\\".*?sources \\+= ")',
11521152
],
1153+
'conditions': [
1154+
['v8_enable_webassembly==1', {
1155+
'conditions': [
1156+
['(_toolset=="host" and host_arch=="arm64" or _toolset=="target" and target_arch=="arm64") or (_toolset=="host" and host_arch=="riscv64" or _toolset=="target" and target_arch=="riscv64") or (_toolset=="host" and host_arch=="x64" or _toolset=="target" and target_arch=="x64")', {
1157+
'sources': [
1158+
'<(V8_ROOT)/src/trap-handler/handler-inside-posix.cc',
1159+
'<(V8_ROOT)/src/trap-handler/handler-outside-posix.cc',
1160+
],
1161+
}],
1162+
['(_toolset=="host" and host_arch=="x64" or _toolset=="target" and target_arch=="x64") and (OS=="linux" or OS=="mac" or OS=="win")', {
1163+
'sources': [
1164+
'<(V8_ROOT)/src/trap-handler/handler-outside-simulator.cc',
1165+
],
1166+
}],
1167+
],
1168+
}],
1169+
],
11531170
}],
11541171
['v8_target_arch=="loong64"', {
11551172
'sources': [

0 commit comments

Comments
 (0)