Skip to content

Commit e1be2a9

Browse files
targosnodejs-github-bot
authored andcommitted
deps: always define V8_EXPORT_PRIVATE as no-op
dllexport introduces issues when compiling with MSVC. PR-URL: nodejs/node#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]>
1 parent b2753e6 commit e1be2a9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

common.gypi

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

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

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

deps/v8/src/base/macros.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -370,9 +370,9 @@ bool is_inbounds(float_t v) {
370370
// Setup for Windows shared library export.
371371
#define V8_EXPORT_ENUM
372372
#ifdef BUILDING_V8_SHARED_PRIVATE
373-
#define V8_EXPORT_PRIVATE __declspec(dllexport)
373+
#define V8_EXPORT_PRIVATE
374374
#elif USING_V8_SHARED_PRIVATE
375-
#define V8_EXPORT_PRIVATE __declspec(dllimport)
375+
#define V8_EXPORT_PRIVATE
376376
#else
377377
#define V8_EXPORT_PRIVATE
378378
#endif // BUILDING_V8_SHARED
@@ -382,8 +382,8 @@ bool is_inbounds(float_t v) {
382382
// Setup for Linux shared library export.
383383
#if V8_HAS_ATTRIBUTE_VISIBILITY
384384
#ifdef BUILDING_V8_SHARED_PRIVATE
385-
#define V8_EXPORT_PRIVATE __attribute__((visibility("default")))
386-
#define V8_EXPORT_ENUM V8_EXPORT_PRIVATE
385+
#define V8_EXPORT_PRIVATE
386+
#define V8_EXPORT_ENUM
387387
#else
388388
#define V8_EXPORT_PRIVATE
389389
#define V8_EXPORT_ENUM

0 commit comments

Comments
 (0)