Skip to content

Commit e982f48

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 <[email protected]> Reviewed-By: Jiawen Geng <[email protected]> Reviewed-By: Rafael Gonzaga <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
1 parent 3196871 commit e982f48

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

common.gypi

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

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

4343
##### V8 defaults for Node.js #####
4444

deps/v8/src/base/macros.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -430,9 +430,9 @@ bool is_inbounds(float_t v) {
430430
// Setup for Windows shared library export.
431431
#define V8_EXPORT_ENUM
432432
#ifdef BUILDING_V8_SHARED_PRIVATE
433-
#define V8_EXPORT_PRIVATE __declspec(dllexport)
433+
#define V8_EXPORT_PRIVATE
434434
#elif USING_V8_SHARED_PRIVATE
435-
#define V8_EXPORT_PRIVATE __declspec(dllimport)
435+
#define V8_EXPORT_PRIVATE
436436
#else
437437
#define V8_EXPORT_PRIVATE
438438
#endif // BUILDING_V8_SHARED
@@ -442,8 +442,8 @@ bool is_inbounds(float_t v) {
442442
// Setup for Linux shared library export.
443443
#if V8_HAS_ATTRIBUTE_VISIBILITY
444444
#ifdef BUILDING_V8_SHARED_PRIVATE
445-
#define V8_EXPORT_PRIVATE __attribute__((visibility("default")))
446-
#define V8_EXPORT_ENUM V8_EXPORT_PRIVATE
445+
#define V8_EXPORT_PRIVATE
446+
#define V8_EXPORT_ENUM
447447
#else
448448
#define V8_EXPORT_PRIVATE
449449
#define V8_EXPORT_ENUM

0 commit comments

Comments
 (0)