Skip to content

Commit 1142f78

Browse files
committed
deps: always define V8_EXPORT_PRIVATE as no-op
dllexport introduces issues when compiling with MSVC. PR-URL: #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> PR-URL: #55014 Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
1 parent 7917b67 commit 1142f78

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
@@ -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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -423,9 +423,9 @@ bool is_inbounds(float_t v) {
423423
// Setup for Windows shared library export.
424424
#define V8_EXPORT_ENUM
425425
#ifdef BUILDING_V8_SHARED_PRIVATE
426-
#define V8_EXPORT_PRIVATE __declspec(dllexport)
426+
#define V8_EXPORT_PRIVATE
427427
#elif USING_V8_SHARED_PRIVATE
428-
#define V8_EXPORT_PRIVATE __declspec(dllimport)
428+
#define V8_EXPORT_PRIVATE
429429
#else
430430
#define V8_EXPORT_PRIVATE
431431
#endif // BUILDING_V8_SHARED
@@ -435,8 +435,8 @@ bool is_inbounds(float_t v) {
435435
// Setup for Linux shared library export.
436436
#if V8_HAS_ATTRIBUTE_VISIBILITY
437437
#ifdef BUILDING_V8_SHARED_PRIVATE
438-
#define V8_EXPORT_PRIVATE __attribute__((visibility("default")))
439-
#define V8_EXPORT_ENUM V8_EXPORT_PRIVATE
438+
#define V8_EXPORT_PRIVATE
439+
#define V8_EXPORT_ENUM
440440
#else
441441
#define V8_EXPORT_PRIVATE
442442
#define V8_EXPORT_ENUM

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy