You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
consumer-setup: upstream llvm msvc_link_lib_env (LIB on MSVC link actions), bump and drop the patch (part of #11411) #11967
Part of #11411 and #11416. The #11411 first slice replaces patches/rules_rust/rust_lld_msvc_libpath.patch with patches/llvm/msvc_link_lib_env.patch. That patch makes llvm's clang-cl toolchain set LIB on MSVC link actions to the hermetic CRT, Windows SDK and libc++ dirs. Unpatched rules_rust 0.75.0 already turns cc link env LIB into -LIBPATH: (rust/private/rustc.bzlget_linker_and_args, bazelbuild/rules_rust#3256), so rust-lld finds kernel32.lib. Consumers get unpatched BCR llvm, so the patch has to go upstream.
When a BCR llvm release includes it, bump llvm in MODULE.bazel and the adopt override, then delete the patch, its BUILD export, its family copies and its README row.
Check: //rust/tests/fixtures/native_call:native_call_bin_link_windows_test passes on windows_x86_64 with no llvm or rules_rust patch for this.
Not started. Blocked: the Fix items need a hermetic-llvm PR and a BCR llvm release, both outside devhusdk/rules_dx, and patches/llvm/msvc_link_lib_env.patch is not on main yet (only libunwind_copy and clang_cl_crt_default_lib are). Remaining: every Fix item. Next worker: land the patch content, open the upstream PR, then bump and drop once released.
Skipped: #12667 replaced the llvm patch with rules_dx clang-cl toolchains (//cc/private/toolchain/clang_cl). What remains is opening the hermetic-llvm PR (outside devhusdk/rules_dx), which needs the owner or an authorized account, and then the BCR bump that drops the //cc/private/toolchain/clang_cl LIB cc_args.
Upstream opened: hermeticbuild/hermetic-llvm issue hermeticbuild/hermetic-llvm#972, PR hermeticbuild/hermetic-llvm#973. The clang-cl MSVC toolchain sets LIB on link actions to the hermetic SDK, CRT and libc++ dirs, in place of the placeholder. The PR is rebased onto current llvm main and carries two analysis tests.
Part done in #13976: the clang_cl LIB carry is marked # Upstream: hermeticbuild/hermetic-llvm#973, and the weekly //patches:upstream report now reads such markers. Remaining: wait for hermeticbuild/hermetic-llvm#973 to merge and ship in an llvm release, then bump llvm and delete the search_path, *_link_lib_env and link_lib_env targets in cc/private/toolchain/clang_cl/BUILD.bazel and the link_lib_env parameter of clang_cl_toolchains.
Activity
TrapsterDK commentedon Nov 12, 2026
Not started. Blocked: the Fix items need a hermetic-llvm PR and a BCR llvm release, both outside devhusdk/rules_dx, and patches/llvm/msvc_link_lib_env.patch is not on main yet (only libunwind_copy and clang_cl_crt_default_lib are). Remaining: every Fix item. Next worker: land the patch content, open the upstream PR, then bump and drop once released.
TrapsterDK commentedon Nov 17, 2026
Skipped: #12667 replaced the llvm patch with rules_dx clang-cl toolchains (//cc/private/toolchain/clang_cl). What remains is opening the hermetic-llvm PR (outside devhusdk/rules_dx), which needs the owner or an authorized account, and then the BCR bump that drops the //cc/private/toolchain/clang_cl LIB cc_args.
Assisted by Claude.
TrapsterDK commentedon Nov 18, 2026
Upstream opened: hermeticbuild/hermetic-llvm issue hermeticbuild/hermetic-llvm#972, PR hermeticbuild/hermetic-llvm#973. The clang-cl MSVC toolchain sets
LIBon link actions to the hermetic SDK, CRT and libc++ dirs, in place of the placeholder. The PR is rebased onto current llvm main and carries two analysis tests.Assisted by Claude.
TrapsterDK commentedon Nov 19, 2026
Part done in #13976: the clang_cl LIB carry is marked
# Upstream: hermeticbuild/hermetic-llvm#973, and the weekly//patches:upstreamreport now reads such markers. Remaining: wait for hermeticbuild/hermetic-llvm#973 to merge and ship in an llvm release, then bump llvm and delete thesearch_path,*_link_lib_envandlink_lib_envtargets incc/private/toolchain/clang_cl/BUILD.bazeland thelink_lib_envparameter ofclang_cl_toolchains.Assisted by Claude.
patches: report # Upstream: carry markers in BUILD and .bzl files (pa…
patches: report # Upstream: carry markers in BUILD and .bzl files (pa…
cc: clang-cl LIB carry is rules_dx-owned, not an llvm stand-in (closes …