build,win: fix Perfetto

Signed-off-by: StefanStojanovic <stefan.stojanovic@janeasystems.com>
Co-Authored-By: Chengzhong Wu <cwu631@bloomberg.net>
PR-URL: https://github.com/nodejs/node/pull/66876
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
This commit is contained in:
StefanStojanovicandChengzhong Wu authored and Antoine du Hamel committed 2026-11-12 17:45:21 +01:00
1 parent 1a8c999b02
commit 114bc1c73f
3 files changed
+14 -1

No files matched your search

+8
View File
@@ -18,6 +18,14 @@
'sources': [
'<@(perfetto_sdk_sources)',
],
'conditions': [
['OS=="win"', {
'defines': [
'WIN32_LEAN_AND_MEAN',
'NOMINMAX',
],
}],
],
},
]
}
+5
View File
@@ -93,6 +93,11 @@
[ 'OS=="linux" and target_arch=="s390x"', {
'cflags': [ '-march=z14' ],
}],
[ 'v8_use_perfetto==1 and node_shared_perfetto=="false"', {
'dependencies': [
'deps/perfetto/perfetto.gyp:perfetto_sdk',
],
}],
[ 'node_enable_d8=="true"', {
'dependencies': [ 'tools/v8_gypfiles/d8.gyp:d8' ],
}],
+1 -1
View File
@@ -62,7 +62,7 @@
}, {
'is_component_build': 0,
}],
['OS == "win" or OS == "mac"', {
['(OS == "win" or OS == "mac") and v8_use_perfetto == 0', {
# Sets -DENABLE_SYSTEM_INSTRUMENTATION. Enables OS-dependent event tracing
'v8_enable_system_instrumentation': 1,
}, {