File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -404,6 +404,7 @@ jobs:
404404 RUST_CONFIGURE_ARGS : " --build=x86_64-pc-windows-msvc --host=aarch64-pc-windows-msvc --enable-full-tools --enable-profiler"
405405 SCRIPT : python x.py dist
406406 DIST_REQUIRE_ALL_TOOLS : 0
407+ WINDOWS_SDK_20348_HACK : 1
407408 os : windows-latest-xl
408409 - name : dist-i686-mingw
409410 env :
Original file line number Diff line number Diff line change @@ -635,6 +635,9 @@ jobs:
635635 SCRIPT : python x.py dist
636636 # RLS does not build for aarch64-pc-windows-msvc. See rust-lang/rls#1693
637637 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
638641 << : *job-windows-xl
639642
640643 - name : dist-i686-mingw
Original file line number Diff line number Diff line change @@ -37,6 +37,12 @@ if isMacOS; then
3737 # `clang-ar` by accident.
3838 ciCommandSetEnv AR " ar"
3939elif 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+
4046 # If we're compiling for MSVC then we, like most other distribution builders,
4147 # switch to clang as the compiler. This'll allow us eventually to enable LTO
4248 # 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