diff --git a/common.gypi b/common.gypi index 888b8b94ca1a..375956862d2d 100644 --- a/common.gypi +++ b/common.gypi @@ -270,7 +270,10 @@ '_GLIBCXX_USE_CXX11_ABI=1', # This help forks when building Node.js on a 32-bit arch as # libuv is always compiled with _FILE_OFFSET_BITS=64 - '_FILE_OFFSET_BITS=64' + '_FILE_OFFSET_BITS=64', + # Work around https://github.com/nodejs/node/issues/52229 + "NODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT=1", + "NAPI_EXPERIMENTAL=1", ], # Forcibly disable -Werror. We support a wide range of compilers, it's