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
refactor(cuda_builder): gate Blackwell default arch on llvm19 cargo feature
Replace the LLVM_CONFIG_19 env-var sniffing in `cuda_builder` with a proper
`llvm19` cargo feature, addressing review feedback on #375.
- `nvvm` gains an `llvm19` feature; `NvvmArch`'s `#[default]` is moved off
`Compute75` and onto `Compute100` via `cfg_attr` when it's enabled, so
`NvvmArch::default()` returns the right answer for the active dialect.
- `cuda_builder` gains a matching `llvm19` feature that propagates to
`nvvm/llvm19` and (when the optional dep is on) `rustc_codegen_nvvm/llvm19`.
`CudaBuilder::new` goes back to plain `NvvmArch::default()`.
- The build script's nested `cargo build -p rustc_codegen_nvvm` now keys the
`--features llvm19` flag off `cfg!(feature = "llvm19")` instead of the env
var, so the toggle lives in one place.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments