From ba2e7fa964cb32be9a50ce7c72ac728c9ca12db2 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Mon, 19 Dec 2022 18:29:17 -0800 Subject: [PATCH] Speculative fix for Windows CI --- .circleci/config.yml | 1 + bazel/emscripten_toolchain/BUILD.bazel | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index a5d7e20155..d8f0e7a5ca 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -211,6 +211,7 @@ jobs: environment: PYTHONUNBUFFERED: "1" EMSDK_NOTTY: "1" + USE_BAZEL_VERSION: "5.4.0" steps: - checkout - run: diff --git a/bazel/emscripten_toolchain/BUILD.bazel b/bazel/emscripten_toolchain/BUILD.bazel index e23a28b3b2..d32f116308 100644 --- a/bazel/emscripten_toolchain/BUILD.bazel +++ b/bazel/emscripten_toolchain/BUILD.bazel @@ -62,7 +62,10 @@ emscripten_cc_toolchain_config_rule( "@bazel_tools//src/conditions:host_windows": "bat", "//conditions:default": "sh", }), - node_binary = "@nodejs//:node", + node_binary = select({ + "@bazel_tools//src/conditions:host_windows": "@nodejs//:node_bin", + "//conditions:default": "@nodejs//:node", + }), ) cc_toolchain(