File tree Expand file tree Collapse file tree 3 files changed +26
-1
lines changed Expand file tree Collapse file tree 3 files changed +26
-1
lines changed Original file line number Diff line number Diff line change 8
8
#include " uv.h"
9
9
#include " v8.h"
10
10
#include " zlib.h"
11
+ #include " ../deps/uvwasi/include/uvwasi.h"
11
12
12
13
#if HAVE_OPENSSL
13
14
#include < openssl/opensslv.h>
@@ -67,6 +68,16 @@ void Metadata::Versions::InitializeIntlVersions() {
67
68
}
68
69
#endif // NODE_HAVE_I18N_SUPPORT
69
70
71
+ // define the UVWASI_VERSION if UVWASI_VERSION_* exists
72
+ #if defined(UVWASI_VERSION_MAJOR) &&
73
+ defined (UVWASI_VERSION_MINOR) &&
74
+ defined(UVWASI_VERSION_PATCH)
75
+
76
+ #define UVWASI_VERSION STRINGIFY (UVWASI_VERSION_MAJOR) "." /
77
+ STRINGIFY(UVWASI_VERSION_MINOR) "." /
78
+ STRINGIFY(UVWASI_VERSION_PATCH)
79
+ #endif // UVWASI_VERSION_MAJOR UVWASI_VERSION_MINOR UVWASI_VERSION_PATCH
80
+
70
81
Metadata::Versions::Versions () {
71
82
node = NODE_VERSION_STRING;
72
83
v8 = v8::V8::GetVersion ();
@@ -103,6 +114,10 @@ Metadata::Versions::Versions() {
103
114
ngtcp2 = NGTCP2_VERSION;
104
115
nghttp3 = NGHTTP3_VERSION;
105
116
#endif
117
+
118
+ #ifdef UVWASI_VERSION
119
+ uvwasi = UVWASI_VERSION;
120
+ #endif // UVWASI_VERSION
106
121
}
107
122
108
123
Metadata::Release::Release () : name(NODE_RELEASE) {
Original file line number Diff line number Diff line change 13
13
#endif
14
14
#endif // HAVE_OPENSSL
15
15
16
+ #include " ../deps/uvwasi/include/uvwasi.h"
17
+
16
18
namespace node {
17
19
18
20
// if this is a release build and no explicit base has been set
@@ -39,6 +41,12 @@ namespace node {
39
41
V (napi) \
40
42
V (llhttp) \
41
43
44
+ #if defined(UVWASI_VERSION_MAJOR) &&
45
+ defined (UVWASI_VERSION_MINOR) &&
46
+ defined(UVWASI_VERSION_PATCH)
47
+ #define NODE_VERSIONS_UVWASI (V) V(uvwasi)
48
+ #endif // UVWASI_VERSION_PATCH UVWASI_VERSION_MINOR UVWASI_VERSION_MAJOR
49
+
42
50
#if HAVE_OPENSSL
43
51
#define NODE_VERSIONS_KEY_CRYPTO (V ) V(openssl)
44
52
#else
@@ -67,7 +75,8 @@ namespace node {
67
75
NODE_VERSIONS_KEYS_BASE (V) \
68
76
NODE_VERSIONS_KEY_CRYPTO (V) \
69
77
NODE_VERSIONS_KEY_INTL (V) \
70
- NODE_VERSIONS_KEY_QUIC (V)
78
+ NODE_VERSIONS_KEY_QUIC (V) \
79
+ NODE_VERSIONS_UVWASI (V)
71
80
72
81
class Metadata {
73
82
public:
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ const expected_keys = [
13
13
'nghttp2' ,
14
14
'napi' ,
15
15
'llhttp' ,
16
+ 'uvwasi' ,
16
17
] ;
17
18
18
19
if ( common . hasCrypto ) {
You can’t perform that action at this time.
0 commit comments