Skip to content

Commit

Permalink
src: allow embedders to override NODE_MODULE_VERSION
Browse files Browse the repository at this point in the history
  • Loading branch information
zcbenz committed Sep 7, 2023
1 parent 745046d commit 0970392
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/node_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,20 @@
* We will, at times update the version of V8 shipped in the release line
* if it can be made ABI compatible with the previous version.
*
* Embedders building Node.js can define NODE_EMBEDDER_MODULE_VERSION to
* override the default value of NODE_MODULE_VERSION.
*
* The registry of used NODE_MODULE_VERSION numbers is located at
* https://github.com/nodejs/node/blob/HEAD/doc/abi_version_registry.json
* Extenders, embedders and other consumers of Node.js that require ABI
* version matching should open a pull request to reserve a number in this
* registry.
*/
#if defined(NODE_EMBEDDER_MODULE_VERSION)
#define NODE_MODULE_VERSION NODE_EMBEDDER_MODULE_VERSION
#else
#define NODE_MODULE_VERSION 115
#endif

// The NAPI_VERSION supported by the runtime. This is the inclusive range of
// versions which the Node.js binary being built supports.
Expand Down

0 comments on commit 0970392

Please sign in to comment.