File tree 3 files changed +26
-1
lines changed 3 files changed +26
-1
lines changed Original file line number Diff line number Diff line change 10
10
#include " uv.h"
11
11
#include " v8.h"
12
12
#include " zlib.h"
13
+ #include " ../deps/uvwasi/include/uvwasi.h"
13
14
14
15
#if HAVE_OPENSSL
15
16
#include < openssl/opensslv.h>
@@ -69,6 +70,16 @@ void Metadata::Versions::InitializeIntlVersions() {
69
70
}
70
71
#endif // NODE_HAVE_I18N_SUPPORT
71
72
73
+ // define the UVWASI_VERSION if UVWASI_VERSION_* exists
74
+ #if defined(UVWASI_VERSION_MAJOR) &&
75
+ defined (UVWASI_VERSION_MINOR) &&
76
+ defined(UVWASI_VERSION_PATCH)
77
+
78
+ #define UVWASI_VERSION STRINGIFY (UVWASI_VERSION_MAJOR) "." /
79
+ STRINGIFY(UVWASI_VERSION_MINOR) "." /
80
+ STRINGIFY(UVWASI_VERSION_PATCH)
81
+ #endif // UVWASI_VERSION_MAJOR UVWASI_VERSION_MINOR UVWASI_VERSION_PATCH
82
+
72
83
Metadata::Versions::Versions () {
73
84
node = NODE_VERSION_STRING;
74
85
v8 = v8::V8::GetVersion ();
@@ -107,6 +118,10 @@ Metadata::Versions::Versions() {
107
118
ngtcp2 = NGTCP2_VERSION;
108
119
nghttp3 = NGHTTP3_VERSION;
109
120
#endif
121
+
122
+ #ifdef UVWASI_VERSION
123
+ uvwasi = UVWASI_VERSION;
124
+ #endif // UVWASI_VERSION
110
125
}
111
126
112
127
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
@@ -41,6 +43,12 @@ namespace node {
41
43
V (cjs_module_lexer) \
42
44
V (base64)
43
45
46
+ #if defined(UVWASI_VERSION_MAJOR) &&
47
+ defined (UVWASI_VERSION_MINOR) &&
48
+ defined(UVWASI_VERSION_PATCH)
49
+ #define NODE_VERSIONS_UVWASI (V) V(uvwasi)
50
+ #endif // UVWASI_VERSION_PATCH UVWASI_VERSION_MINOR UVWASI_VERSION_MAJOR
51
+
44
52
#if HAVE_OPENSSL
45
53
#define NODE_VERSIONS_KEY_CRYPTO (V ) V(openssl)
46
54
#else
@@ -69,7 +77,8 @@ namespace node {
69
77
NODE_VERSIONS_KEYS_BASE (V) \
70
78
NODE_VERSIONS_KEY_CRYPTO (V) \
71
79
NODE_VERSIONS_KEY_INTL (V) \
72
- NODE_VERSIONS_KEY_QUIC (V)
80
+ NODE_VERSIONS_KEY_QUIC (V) \
81
+ NODE_VERSIONS_UVWASI (V)
73
82
74
83
class Metadata {
75
84
public:
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ const expected_keys = [
17
17
'llhttp' ,
18
18
'cjs_module_lexer' ,
19
19
'base64' ,
20
+ 'uvwasi' ,
20
21
] ;
21
22
22
23
if ( common . hasCrypto ) {
You can’t perform that action at this time.
0 commit comments