File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010#include " uv.h"
1111#include " v8.h"
1212#include " zlib.h"
13+ #include " ../deps/uvwasi/include/uvwasi.h"
1314
1415#if HAVE_OPENSSL
1516#include < openssl/opensslv.h>
@@ -69,6 +70,16 @@ void Metadata::Versions::InitializeIntlVersions() {
6970}
7071#endif // NODE_HAVE_I18N_SUPPORT
7172
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+
7283Metadata::Versions::Versions () {
7384 node = NODE_VERSION_STRING;
7485 v8 = v8::V8::GetVersion ();
@@ -107,6 +118,10 @@ Metadata::Versions::Versions() {
107118 ngtcp2 = NGTCP2_VERSION;
108119 nghttp3 = NGHTTP3_VERSION;
109120#endif
121+
122+ #ifdef UVWASI_VERSION
123+ uvwasi = UVWASI_VERSION;
124+ #endif // UVWASI_VERSION
110125}
111126
112127Metadata::Release::Release () : name(NODE_RELEASE) {
Original file line number Diff line number Diff line change 1313#endif
1414#endif // HAVE_OPENSSL
1515
16+ #include " ../deps/uvwasi/include/uvwasi.h"
17+
1618namespace node {
1719
1820// if this is a release build and no explicit base has been set
@@ -41,6 +43,12 @@ namespace node {
4143 V (cjs_module_lexer) \
4244 V (base64)
4345
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+
4452#if HAVE_OPENSSL
4553#define NODE_VERSIONS_KEY_CRYPTO (V ) V(openssl)
4654#else
@@ -69,7 +77,8 @@ namespace node {
6977 NODE_VERSIONS_KEYS_BASE (V) \
7078 NODE_VERSIONS_KEY_CRYPTO (V) \
7179 NODE_VERSIONS_KEY_INTL (V) \
72- NODE_VERSIONS_KEY_QUIC (V)
80+ NODE_VERSIONS_KEY_QUIC (V) \
81+ NODE_VERSIONS_UVWASI (V)
7382
7483class Metadata {
7584 public:
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ const expected_keys = [
1717 'llhttp' ,
1818 'cjs_module_lexer' ,
1919 'base64' ,
20+ 'uvwasi' ,
2021] ;
2122
2223if ( common . hasCrypto ) {
You can’t perform that action at this time.
0 commit comments