8000 Select the correct toolchain for Windows arm64 after enabling cc tool… · coderabbit-test/bazel@138f06f · GitHub
[go: up one dir, main page]

Skip to content

Commit 138f06f

Browse files
meteorcloudycopybara-github
authored andcommitted
Select the correct toolchain for Windows arm64 after enabling cc toolchain resolution.
PiperOrigin-RevId: 555413912 Change-Id: I3ccc0d51973849aaa891dd0944a00432ce3d2cfb
1 parent 9997b3d commit 138f06f

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

.bazelci/build_bazel_binaries.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ platforms:
5252
- "--host_copt=-w"
5353
- "-c"
5454
- "opt"
55-
- "--cpu=x64_arm64_windows"
56-
- "--incompatible_enable_cc_toolchain_resolution"
55+
- "--config=windows_arm64"
5756
build_targets:
5857
- "//src:bazel.exe"
5958
- "//src:bazel_nojdk.exe"

.bazelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ build:macos --macos_minimum_os=10.11
3232
# Therefore, use the local detected Python toolchain on Windows.
3333
build:windows --extra_toolchains=@bazel_tools//tools/python:autodetecting_toolchain
3434

35+
build:windows_arm64 --platforms=//:windows_arm64
36+
build:windows_arm64 --extra_toolchains=@local_config_cc//:cc-toolchain-arm64_windows
37+
3538
# Enable Bzlmod
3639
build:bzlmod --enable_bzlmod
3740
build:bzlmod --check_direct_dependencies=error

BUILD

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,14 @@ platform(
248248
parents = ["@local_config_platform//:host"],
249249
)
250250

251+
platform(
252+
name = "windows_arm64",
253+
constraint_values = [
254+
"@platforms//os:windows",
255+
"@platforms//cpu:arm64",
256+
],
257+
)
258+
251259
REMOTE_PLATFORMS = ("rbe_ubuntu1804_java11",)
252260

253261
[

0 commit comments

Comments
 (0)
0