build-support/vm: don't depend on the "unix" module (#375355)
[NixPkgs.git] / pkgs / development / web / nodejs / disable-darwin-v8-system-instrumentation-node19.patch
blob5d56af7849733b10a01a65104ba3556687ae2ad4
1 Disable v8 system instrumentation on Darwin
3 On Darwin, the v8 system instrumentation requires the header "os/signpost.h"
4 which is available since apple_sdk 11+. See: https://github.com/nodejs/node/issues/39584
6 --- old/tools/v8_gypfiles/features.gypi
7 +++ new/tools/v8_gypfiles/features.gypi
8 @@ -62,7 +62,7 @@
9 }, {
10 'is_component_build': 0,
11 }],
12 - ['OS == "win" or OS == "mac"', {
13 + ['OS == "win"', {
14 # Sets -DENABLE_SYSTEM_INSTRUMENTATION. Enables OS-dependent event tracing
15 'v8_enable_system_instrumentation': 1,
16 }, {