Skip to content

Commit f9df426

Browse files
Fetch version-matched v8-fast-api-calls.h for each Node.js target in prepare() (#1241)
* Initial plan * Download correct v8-fast-api-calls.h for each Node.js version in prepare() Co-authored-by: uNetworkingAB <110806833+uNetworkingAB@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: uNetworkingAB <110806833+uNetworkingAB@users.noreply.github.com>
1 parent 76769b3 commit f9df426

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎build.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ void prepare() {
7070
run("curl -OJ https://nodejs.org/dist/%s/node-%s-headers.tar.gz", versions[i].name, versions[i].name);
7171
run("tar xzf node-%s-headers.tar.gz -C targets", versions[i].name);
7272
run("curl https://nodejs.org/dist/%s/win-x64/node.lib > targets/node-%s/node.lib", versions[i].name, versions[i].name);
73+
/* v8-fast-api-calls.h is missing from the Node.js header distribution; fetch the correct major version from the Node.js source tree */
74+
run("curl -fL https://raw.githubusercontent.com/nodejs/node/%s/deps/v8/include/v8-fast-api-calls.h > targets/node-%s/include/node/v8-fast-api-calls.h", versions[i].name, versions[i].name);
7375
}
7476
}
7577

0 commit comments

Comments
 (0)