build: add flag for setting vendor version (#41247)
This commit is contained in:
parent
5686f88bd2
commit
92c5ff30a7
3 changed files with 21 additions and 0 deletions
|
@ -942,6 +942,10 @@ void OnNodePreload(node::Environment* env,
|
|||
if (dict.Get("versions", &versions)) {
|
||||
versions.SetReadOnly(ELECTRON_PROJECT_NAME, ELECTRON_VERSION_STRING);
|
||||
versions.SetReadOnly("chrome", CHROME_VERSION_STRING);
|
||||
#if BUILDFLAG(HAS_VENDOR_VERSION)
|
||||
versions.SetReadOnly(BUILDFLAG(VENDOR_VERSION_NAME),
|
||||
BUILDFLAG(VENDOR_VERSION_VALUE));
|
||||
#endif
|
||||
}
|
||||
|
||||
// Execute lib/node/init.ts.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue