Skip to content

Commit 39a6535

Browse files
committed
Revert "Simplify toolchain setup"
This reverts commit 51c7d2a.
1 parent 51c7d2a commit 39a6535

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

.bazelrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ build:macos \
1212
--macos_minimum_os=13.5 --host_macos_minimum_os=13.5
1313

1414
build:windows \
15-
--compiler=clang-cl \
16-
--action_env=BAZEL_USE_CPP_ONLY_TOOLCHAIN=1
15+
--extra_toolchains=@local_config_cc//:cc-toolchain-x64_windows-clang-cl \
16+
--extra_execution_platforms=//:x64_windows-clang-cl
1717

1818
build \
1919
--disk_cache=~/.bazel_cache \

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ jobs:
7474
arch: arm64
7575
windows-display-name: '11 ARM'
7676
swift-version: 6.2.1
77+
env:
78+
CC: clang
79+
BAZEL_LLVM: C:\Program Files\LLVM
7780
steps:
7881
- uses: compnerd/gha-setup-swift@main
7982
with:

BUILD

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@ config_setting(
2323
},
2424
)
2525

26+
platform(
27+
name = "x64_windows-clang-cl",
28+
constraint_values = [
29+
"@platforms//cpu:x86_64",
30+
"@platforms//os:windows",
31+
"@bazel_tools//tools/cpp:clang-cl",
32+
],
33+
)
34+
2635
# Targets
2736

2837
swift_library(

0 commit comments

Comments
 (0)