mirror of
https://github.com/openai/codex.git
synced 2026-11-18 22:20:48 +00:00
ci: run Windows argument-comment-lint via native Bazel
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
--- a/rust/private/rustc.bzl
|
||||
+++ b/rust/private/rustc.bzl
|
||||
@@ -473,11 +473,13 @@
|
||||
ld_is_direct_driver = False
|
||||
|
||||
# The bootstrap process wrapper is built without the normal rules_rust
|
||||
- # process wrapper. On Windows, the C++ toolchain path currently resolves to
|
||||
- # clang++ while still emitting MSVC-style arguments, so prefer rust-lld for
|
||||
- # this one bootstrap binary instead of switching all Rust actions over.
|
||||
+ # process wrapper. On Windows nightly toolchains that expose rust-lld, the
|
||||
+ # C++ toolchain path currently resolves to clang++ while still emitting
|
||||
+ # MSVC-style arguments, so prefer rust-lld for this one bootstrap binary
|
||||
+ # instead of switching all Rust actions over.
|
||||
use_bootstrap_rust_linker = (
|
||||
toolchain.target_os.startswith("windows") and
|
||||
+ toolchain.linker != None and
|
||||
hasattr(ctx.executable, "_bootstrap_process_wrapper") and
|
||||
not ctx.executable._process_wrapper
|
||||
)
|
||||
Reference in New Issue
Block a user