corrosion-rs / corrosion

Marrying Rust and CMake - Easy Rust and C/C++ Integration!
https://corrosion-rs.github.io/corrosion/
MIT License
1.11k stars 106 forks source link

Fix finding rustc with rustup from package manager when Rust_RESOLVE_RUSTUP_TOOLCHAINS=OFF #545

Closed jschwe closed 3 months ago

jschwe commented 3 months ago

rustup can be installed from a package manager. If Rust_RESOLVE_RUSTUP_TOOLCHAINS is set to OFF, but rustup is installed, we can't assume rustc will be next to rustup.