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: #49279
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: Chengzhong Wu <[email protected]>
Reviewed-By: Stephen Belanger <[email protected]>
  • Loading branch information
zcbenz authored and ruyadorno committed Sep 28, 2023
1 parent f62d649 commit 14ece0a
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 provided by this version of the runtime. This is the version
// which the Node binary being built supports.
Expand Down

0 comments on commit 14ece0a

Please sign in to comment.