Skip to content

Commit

Permalink
src: allow embedders to override NODE_MODULE_VERSION
Browse files Browse the repository at this point in the history
PR-URL: nodejs#49279
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
  • Loading branch information
zcbenz authored and alexfernandez committed Nov 1, 2023
1 parent 6a5796a commit 247e19a
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 247e19a

Please sign in to comment.