Skip to content

Commit

Permalink
tools: update V8 gypfiles for 10.7
Browse files Browse the repository at this point in the history
PR-URL: #44741
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Jiawen Geng <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
targos committed Oct 11, 2022
1 parent 89ecddd commit 4860ad9
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 499 deletions.
35 changes: 18 additions & 17 deletions tools/v8_gypfiles/features.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,16 @@
'is_component_build': 0,
}],
['OS == "win" or OS == "mac"', {
# Sets -DSYSTEM_INSTRUMENTATION. Enables OS-dependent event tracing
# Sets -DENABLE_SYSTEM_INSTRUMENTATION. Enables OS-dependent event tracing
'v8_enable_system_instrumentation': 1,
}, {
'v8_enable_system_instrumentation': 0,
}],
['OS == "win"', {
'v8_enable_etw_stack_walking': 1,
}, {
'v8_enable_etw_stack_walking': 0,
}]
],
'is_debug%': 0,

Expand Down Expand Up @@ -219,17 +224,9 @@
'v8_enable_zone_compression%': 0,

# Enable the experimental V8 sandbox.
# Sets -DV8_SANDBOX.
# Sets -DV8_ENABLE_SANDBOX.
'v8_enable_sandbox%': 0,

# Enable external pointer sandboxing. Requires v8_enable_sandbox.
# Sets -DV8_SANDBOXED_EXTERNAL_POINRTERS.
'v8_enable_sandboxed_external_pointers%': 0,

# Enable sandboxed pointers. Requires v8_enable_sandbox.
# Sets -DV8_SANDBOXED_POINTERS.
'v8_enable_sandboxed_pointers%': 0,

# Experimental feature for collecting per-class zone memory stats.
# Requires use_rtti = true
'v8_enable_precise_zone_stats%': 0,
Expand Down Expand Up @@ -263,6 +260,10 @@
# (incomplete and experimental).
'v8_enable_cet_shadow_stack%': 0,

# Compile V8 using zlib as dependency.
# Sets -DV8_USE_ZLIB
'v8_use_zlib%': 1,

# Variables from v8.gni

# Enable ECMAScript Internationalization API. Enabling this feature will
Expand Down Expand Up @@ -323,13 +324,7 @@
'defines': ['V8_COMPRESS_ZONES',],
}],
['v8_enable_sandbox==1', {
'defines': ['V8_SANDBOX',],
}],
['v8_enable_sandboxed_pointers==1', {
'defines': ['V8_SANDBOXED_POINTERS',],
}],
['v8_enable_sandboxed_external_pointers==1', {
'defines': ['V8_SANDBOXED_EXTERNAL_POINTERS',],
'defines': ['V8_ENABLE_SANDBOX',],
}],
['v8_enable_object_print==1', {
'defines': ['OBJECT_PRINT',],
Expand Down Expand Up @@ -427,6 +422,9 @@
['v8_enable_cet_shadow_stack==1', {
'defines': ['V8_ENABLE_CET_SHADOW_STACK',],
}],
['v8_use_zlib==1', {
'defines': ['V8_USE_ZLIB',],
}],
['v8_enable_precise_zone_stats==1', {
'defines': ['V8_ENABLE_PRECISE_ZONE_STATS',],
}],
Expand All @@ -439,6 +437,9 @@
['v8_enable_system_instrumentation==1', {
'defines': ['V8_ENABLE_SYSTEM_INSTRUMENTATION',],
}],
['v8_enable_etw_stack_walking==1', {
'defines': ['V8_ENABLE_ETW_STACK_WALKING',],
}],
['v8_enable_webassembly==1', {
'defines': ['V8_ENABLE_WEBASSEMBLY',],
}],
Expand Down
2 changes: 0 additions & 2 deletions tools/v8_gypfiles/inspector.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
'variables': {
'inspector_protocol_path': '<(V8_ROOT)/third_party/inspector_protocol',
'inspector_protocol_files': [
'<(inspector_protocol_path)/lib/base_string_adapter_cc.template',
'<(inspector_protocol_path)/lib/base_string_adapter_h.template',
'<(inspector_protocol_path)/lib/Forward_h.template',
'<(inspector_protocol_path)/lib/Object_cpp.template',
'<(inspector_protocol_path)/lib/Object_h.template',
Expand Down
Loading

0 comments on commit 4860ad9

Please sign in to comment.