File tree 3 files changed +10
-0
lines changed
3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -404,6 +404,7 @@ jobs:
404
404
RUST_CONFIGURE_ARGS : " --build=x86_64-pc-windows-msvc --host=aarch64-pc-windows-msvc --enable-full-tools --enable-profiler"
405
405
SCRIPT : python x.py dist
406
406
DIST_REQUIRE_ALL_TOOLS : 0
407
+ WINDOWS_SDK_20348_HACK : 1
407
408
os : windows-latest-xl
408
409
- name : dist-i686-mingw
409
410
env :
Original file line number Diff line number Diff line change @@ -635,6 +635,9 @@ jobs:
635
635
SCRIPT : python x.py dist
636
636
# RLS does not build for aarch64-pc-windows-msvc. See rust-lang/rls#1693
637
637
DIST_REQUIRE_ALL_TOOLS : 0
638
+ # Hack around this SDK version, because it doesn't work with clang.
639
+ # See https://github.com/rust-lang/rust/issues/88796
640
+ WINDOWS_SDK_20348_HACK : 1
638
641
<< : *job-windows-xl
639
642
640
643
- name : dist-i686-mingw
Original file line number Diff line number Diff line change @@ -37,6 +37,12 @@ if isMacOS; then
37
37
# `clang-ar` by accident.
38
38
ciCommandSetEnv AR " ar"
39
39
elif isWindows && [[ ${CUSTOM_MINGW-0} -ne 1 ]]; then
40
+
41
+ if [[ ${WINDOWS_SDK_20348_HACK-0} -eq 1 ]]; then
42
+ rm -rf ' /c/Program Files (x86)/Windows Kits/10/include/10.0.20348.0'
43
+ mv ' /c/Program Files (x86)/Windows Kits/10/include/' 10.0.{19041,20348}.0
44
+ fi
45
+
40
46
# If we're compiling for MSVC then we, like most other distribution builders,
41
47
# switch to clang as the compiler. This'll allow us eventually to enable LTO
42
48
# amongst LLVM and rustc. Note that we only do this on MSVC as I don't think
You can’t perform that action at this time.
0 commit comments