Skip to content

Commit d8e1058

Browse files
Shi Pujintargos
authored andcommitted
tools: fix loong64 build
PR-URL: #51401 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent e0eeebc commit d8e1058

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tools/v8_gypfiles/v8.gyp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,6 +1024,18 @@
10241024
'sources': [
10251025
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?v8_enable_wasm_gdb_remote_debugging.*?v8_current_cpu == \\"loong64\\".*?sources \\+= ")',
10261026
],
1027+
'conditions': [
1028+
['v8_enable_webassembly==1', {
1029+
'conditions': [
1030+
['(_toolset=="host" and host_arch=="arm64" or _toolset=="target" and target_arch=="arm64") or (_toolset=="host" and host_arch=="loong64" or _toolset=="target" and target_arch=="loong64") or (_toolset=="host" and host_arch=="x64" or _toolset=="target" and target_arch=="x64")', {
1031+
'sources': [
1032+
'<(V8_ROOT)/src/trap-handler/handler-inside-posix.cc',
1033+
'<(V8_ROOT)/src/trap-handler/handler-outside-posix.cc',
1034+
],
1035+
}],
1036+
],
1037+
}],
1038+
],
10271039
}],
10281040
['OS=="win"', {
10291041
# This will prevent V8's .cc files conflicting with the inspector's

0 commit comments

Comments
 (0)