mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-16 17:03:35 +00:00
Rollup merge of #80981 - bjorn3:bjorn3-patch-1, r=jonas-schievink
Fix -Cpasses=list and llvm version print with -vV cc https://github.com/rust-lang/rust/pull/77975#issuecomment-759362933
This commit is contained in:
commit
ce3bc76a86
@ -798,7 +798,7 @@ pub fn version(binary: &str, matches: &getopts::Matches) {
|
|||||||
println!("commit-date: {}", unw(util::commit_date_str()));
|
println!("commit-date: {}", unw(util::commit_date_str()));
|
||||||
println!("host: {}", config::host_triple());
|
println!("host: {}", config::host_triple());
|
||||||
println!("release: {}", unw(util::release_str()));
|
println!("release: {}", unw(util::release_str()));
|
||||||
if cfg!(llvm) {
|
if cfg!(feature = "llvm") {
|
||||||
get_builtin_codegen_backend("llvm")().print_version();
|
get_builtin_codegen_backend("llvm")().print_version();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1087,7 +1087,7 @@ pub fn handle_options(args: &[String]) -> Option<getopts::Matches> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if cg_flags.iter().any(|x| *x == "passes=list") {
|
if cg_flags.iter().any(|x| *x == "passes=list") {
|
||||||
if cfg!(llvm) {
|
if cfg!(feature = "llvm") {
|
||||||
get_builtin_codegen_backend("llvm")().print_passes();
|
get_builtin_codegen_backend("llvm")().print_passes();
|
||||||
}
|
}
|
||||||
return None;
|
return None;
|
||||||
|
Loading…
Reference in New Issue
Block a user