mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
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:
1 parent
1a8c999b02
commit
114bc1c73f
3 files changed
+14
-1
No files matched your search
Vendored
+8
@@ -18,6 +18,14 @@
|
||||
'sources': [
|
||||
'<@(perfetto_sdk_sources)',
|
||||
],
|
||||
'conditions': [
|
||||
['OS=="win"', {
|
||||
'defines': [
|
||||
'WIN32_LEAN_AND_MEAN',
|
||||
'NOMINMAX',
|
||||
],
|
||||
}],
|
||||
],
|
||||
},
|
||||
]
|
||||
}
|
||||
@@ -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' ],
|
||||
}],
|
||||
|
||||
@@ -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,
|
||||
}, {
|
||||
|
||||
Reference in new issue
Block a user