Skip to content

Commit

Permalink
tools: update V8 gypfiles for 9.6
Browse files Browse the repository at this point in the history
  • Loading branch information
targos committed Oct 17, 2021
1 parent 9f098fd commit 4d1e094
Showing 1 changed file with 35 additions and 11 deletions.
46 changes: 35 additions & 11 deletions tools/v8_gypfiles/v8.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -639,14 +639,23 @@
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_current_cpu == \\"arm64\\".*?v8_control_flow_integrity.*?sources \\+= ")',
],
}],
['v8_enable_webassembly==1 and OS=="mac"', {
'sources': [
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_current_cpu == \\"arm64\\".*?v8_enable_webassembly.*?is_mac.*?sources \\+= ")',
['v8_enable_webassembly==1', {
'conditions': [
['OS == "mac" or (_toolset == "host" and host_arch == "x64" and OS == "linux")', {
'sources': [
'<(V8_ROOT)/src/trap-handler/handler-inside-posix.h',
],
}],
['_toolset == "host" and host_arch == "x64" and (OS == "linux" or OS == "mac" or OS == "win")', {
'sources': [
'<(V8_ROOT)/src/trap-handler/trap-handler-simulator.h',
],
}],
],
}],
['OS=="win"', {
['OS == "win"', {
'sources': [
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_current_cpu == \\"arm64\\".*?is_win.*?sources \\+= ")',
'<(V8_ROOT)/src/diagnostics/unwinding-info-win64.h',
],
}],
],
Expand Down Expand Up @@ -857,15 +866,30 @@
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?v8_current_cpu == \\"arm64\\".*?sources \\+= ")',
],
'conditions': [
['OS=="mac"', {
'sources': [
"<(V8_ROOT)/src/trap-handler/handler-inside-posix.cc",
"<(V8_ROOT)/src/trap-handler/handler-outside-posix.cc",
['v8_enable_webassembly==1', {
'conditions': [
['OS == "mac" or (_toolset == "host" and host_arch == "x64" and OS == "linux")', {
'sources': [
'<(V8_ROOT)/src/trap-handler/handler-inside-posix.cc',
'<(V8_ROOT)/src/trap-handler/handler-outside-posix.cc',
],
}],
['_toolset == "host" and host_arch == "x64" and OS == "win"', {
'sources': [
'<(V8_ROOT)/src/trap-handler/handler-inside-win.cc',
'<(V8_ROOT)/src/trap-handler/handler-outside-win.cc',
],
}],
['_toolset == "host" and host_arch == "x64" and (OS == "linux" or OS == "mac" or OS == "win")', {
'sources': [
'<(V8_ROOT)/src/trap-handler/handler-outside-simulator.cc',
],
}],
],
}],
['OS=="win"', {
['OS == "win"', {
'sources': [
"<(V8_ROOT)/src/diagnostics/unwinding-info-win64.cc",
'<(V8_ROOT)/src/diagnostics/unwinding-info-win64.cc',
],
}],
],
Expand Down

0 comments on commit 4d1e094

Please sign in to comment.