Skip to content

Commit 78f09ae

Browse files
committed
deps: always define V8_EXPORT_PRIVATE as no-op
dllexport introduces issues when compiling with MSVC. PR-URL: nodejs#47251 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Richard Lau <rlau@redhat.com>
1 parent e588e11 commit 78f09ae

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

common.gypi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
# Reset this number to 0 on major V8 upgrades.
3838
# Increment by one for each non-official patch applied to deps/v8.
39-
'v8_embedder_string': '-node.0',
39+
'v8_embedder_string': '-node.1',
4040

4141
##### V8 defaults for Node.js #####
4242

deps/v8/src/base/macros.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -388,9 +388,9 @@ bool is_inbounds(float_t v) {
388388

389389
// Setup for Windows shared library export.
390390
#ifdef BUILDING_V8_SHARED
391-
#define V8_EXPORT_PRIVATE __declspec(dllexport)
391+
#define V8_EXPORT_PRIVATE
392392
#elif USING_V8_SHARED
393-
#define V8_EXPORT_PRIVATE __declspec(dllimport)
393+
#define V8_EXPORT_PRIVATE
394394
#else
395395
#define V8_EXPORT_PRIVATE
396396
#endif // BUILDING_V8_SHARED
@@ -400,7 +400,7 @@ bool is_inbounds(float_t v) {
400400
// Setup for Linux shared library export.
401401
#if V8_HAS_ATTRIBUTE_VISIBILITY
402402
#ifdef BUILDING_V8_SHARED
403-
#define V8_EXPORT_PRIVATE __attribute__((visibility("default")))
403+
#define V8_EXPORT_PRIVATE
404404
#else
405405
#define V8_EXPORT_PRIVATE
406406
#endif

0 commit comments

Comments
 (0)