From 21e1ec10f07ea991a89c33f191c78ec6fb8e5521 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9my=20Lal?= Date: Thu, 1 May 2025 11:09:56 +0200 Subject: [PATCH] disable shared builtins when loading deps on demand Last-Update: 2023-12-10 Forwarded: no, todo This is to avoid preloading potentially missing files. Gbp-Pq: Topic build Gbp-Pq: Name builtins_module_paths_not_shareable.patch --- src/node_builtins.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/node_builtins.cc b/src/node_builtins.cc index 05573896a..5f45b3e00 100644 --- a/src/node_builtins.cc +++ b/src/node_builtins.cc @@ -35,6 +35,7 @@ using v8::Value; BuiltinLoader::BuiltinLoader() : config_(GetConfig()), code_cache_(std::make_shared()) { LoadJavaScriptSource(); +#ifndef NODE_BUILTIN_MODULES_PATH #ifdef NODE_SHARED_BUILTIN_CJS_MODULE_LEXER_LEXER_PATH AddExternalizedBuiltin( "internal/deps/cjs-module-lexer/lexer", @@ -69,7 +70,7 @@ BuiltinLoader::BuiltinLoader() "internal/deps/minimatch/index", STRINGIFY(NODE_SHARED_BUILTIN_MINIMATCH_PATH)); #endif // NODE_SHARED_BUILTIN_MINIMATCH_PATH - +#endif } bool BuiltinLoader::Exists(const char* id) { -- 2.30.2