Skip to content

Commit 50370c5

Browse files
committed
fixup! build: fix node.js toolchains setup
1 parent ebd8dd9 commit 50370c5

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

tools/toolchain_info.bzl

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,21 @@ TOOLCHAINS_NAMES = [
1010

1111
# this is the list of toolchains that should be used and are registered with nodejs_register_toolchains in the WORKSPACE file
1212
TOOLCHAINS_VERSIONS = [
13-
"@node20_toolchains//:resolved_toolchain",
14-
"@node22_toolchains//:resolved_toolchain",
15-
"@node24_toolchains//:resolved_toolchain",
13+
select({
14+
"@bazel_tools//src/conditions:linux_x86_64": "@node20_linux_amd64//:node_toolchain",
15+
"@bazel_tools//src/conditions:darwin": "@node20_darwin_amd64//:node_toolchain",
16+
"@bazel_tools//src/conditions:windows": "@node20_windows_amd64//:node_toolchain",
17+
}),
18+
select({
19+
"@bazel_tools//src/conditions:linux_x86_64": "@node22_linux_amd64//:node_toolchain",
20+
"@bazel_tools//src/conditions:darwin": "@node22_darwin_amd64//:node_toolchain",
21+
"@bazel_tools//src/conditions:windows": "@node22_windows_amd64//:node_toolchain",
22+
}),
23+
select({
24+
"@bazel_tools//src/conditions:linux_x86_64": "@node24_linux_amd64//:node_toolchain",
25+
"@bazel_tools//src/conditions:darwin": "@node24_darwin_amd64//:node_toolchain",
26+
"@bazel_tools//src/conditions:windows": "@node24_windows_amd64//:node_toolchain",
27+
}),
1628
]
1729

1830
# A default toolchain for use when only one is necessary

0 commit comments

Comments
 (0)