From 7963548186f545df0d6a3df2d11d6e9a2adfc50a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Thu, 3 Apr 2025 20:18:42 +0200 Subject: [PATCH] build: fix V8 TLS config for shared lib builds PR-URL: https://github.com/nodejs/node/pull/58070 Reviewed-By: Antoine du Hamel Reviewed-By: Darshan Sen Reviewed-By: Joyee Cheung Reviewed-By: Rafael Gonzaga --- tools/v8_gypfiles/v8.gyp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/v8_gypfiles/v8.gyp b/tools/v8_gypfiles/v8.gyp index 360b80f93e..8e3f015dff 100644 --- a/tools/v8_gypfiles/v8.gyp +++ b/tools/v8_gypfiles/v8.gyp @@ -53,6 +53,11 @@ 'BUILDING_V8_SHARED', # Make V8_EXPORT visible. ], }], + ['node_shared=="true"', { + 'defines': [ + 'V8_TLS_USED_IN_LIBRARY', # Enable V8_TLS_LIBRARY_MODE. + ], + }], ], }, 'targets': [