GeezerVison is showing github.com — src: allow embedders to override NODE_MODULE_VERSION · nodejs/node@14ece0a
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: src/node_version.h +7Lines changed: 7 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
83 | 83 | * We will, at times update the version of V8 shipped in the release line |
84 | 84 | * if it can be made ABI compatible with the previous version. |
85 | 85 | * |
| 86 | + * Embedders building Node.js can define NODE_EMBEDDER_MODULE_VERSION to |
| 87 | + * override the default value of NODE_MODULE_VERSION. |
| 88 | + * |
86 | 89 | * The registry of used NODE_MODULE_VERSION numbers is located at |
87 | 90 | * https://github.com/nodejs/node/blob/HEAD/doc/abi_version_registry.json |
88 | 91 | * Extenders, embedders and other consumers of Node.js that require ABI |
89 | 92 | * version matching should open a pull request to reserve a number in this |
90 | 93 | * registry. |
91 | 94 | */ |
| 95 | +#if defined(NODE_EMBEDDER_MODULE_VERSION) |
| 96 | +#define NODE_MODULE_VERSION NODE_EMBEDDER_MODULE_VERSION |
| 97 | +#else |
92 | 98 | #define NODE_MODULE_VERSION 115 |
| 99 | +#endif |
93 | 100 |
|
94 | 101 | // The NAPI_VERSION provided by this version of the runtime. This is the version |
95 | 102 | // which the Node binary being built supports. |
|