x perf benchmark
Fails on Windows: Cannot Find rustc
Executable
#141281
Labels
C-bug
Category: This is a bug.
T-bootstrap
Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Summary
Running
x perf benchmark
on Windows fails due to an invalid path to therustc
executable.Command Used
Expected Behavior
The path to
rustc
should include the platform-specific executable suffix by appendingstd::env::consts::EXE_SUFFIX
.Reference:
rust/src/bootstrap/src/core/build_steps/perf.rs
Line 163 in a8e4c68
Actual Behavior
Bootstrap Configuration (
bootstrap.toml
)Operating System
Windows 11
Git Commit
Additional Context
The error seems to be caused by using a forward slash (
/
) instead of a backslash (\
) in therustc
path, and by not appending.exe
on Windows. Adding the correct executable suffix should resolve the issue.The text was updated successfully, but these errors were encountered: