Download patches/rules_rs_windows_msvc_linker.patch from SaylorTwift/codex: direct link, hf CLI and curl.
- Browser
- Download file 1 kB
-
https://huggingface.co/SaylorTwift/codex/resolve/main/patches/rules_rs_windows_msvc_linker.patch
- Command line
-
hf download hf://SaylorTwift/codex/patches/rules_rs_windows_msvc_linker.patch
-
curl -L -o rules_rs_windows_msvc_linker.patch https://huggingface.co/SaylorTwift/codex/resolve/main/patches/rules_rs_windows_msvc_linker.patch
1 kB
| # What: use Rust's bundled direct linker for Windows x86_64 and ARM64 MSVC toolchains. | |
| # Scope: standard and bootstrap rules_rs Rust toolchains targeting x86_64 and ARM64 MSVC. | |
| diff --git a/rs/toolchains/declare_rustc_toolchains.bzl b/rs/toolchains/declare_rustc_toolchains.bzl | |
| --- a/rs/toolchains/declare_rustc_toolchains.bzl | |
| +++ b/rs/toolchains/declare_rustc_toolchains.bzl | |
| def declare_rustc_toolchains( | |
| llvm_cov = "@llvm//tools:llvm-cov", | |
| llvm_profdata = "@llvm//tools:llvm-profdata", | |
| linker = select({ | |
| + "@rules_rs//rs/platforms/config:aarch64-pc-windows-msvc": "{}rust-lld".format(rustc_repo_label), | |
| + "@rules_rs//rs/platforms/config:x86_64-pc-windows-msvc": "{}rust-lld".format(rustc_repo_label), | |
| "@platforms//cpu:wasm32": "{}rust-lld".format(rustc_repo_label), | |
| "@platforms//cpu:wasm64": "{}rust-lld".format(rustc_repo_label), | |
| "//conditions:default": None, | |