Skip to content

Commit a2c2ed3

Browse files
committed
use rustc version as llvm-tools version
1 parent 66a7db9 commit a2c2ed3

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

src/bootstrap/lib.rs

+18-15
Original file line numberDiff line numberDiff line change
@@ -958,21 +958,24 @@ impl Build {
958958
}
959959

960960
fn llvm_tools_vers(&self) -> String {
961-
let stdout = build_helper::output(
962-
Command::new(self.llvm_out(self.config.build).join("build/bin/llvm-size"))
963-
.arg("--version"),
964-
);
965-
966-
for line in stdout.lines() {
967-
if line.contains("LLVM version") {
968-
if let Some(vers) = line.split_whitespace().nth(2) {
969-
return vers.to_string();
970-
}
971-
}
972-
}
973-
974-
panic!("The output of $LLVM_TOOL has changed; \
975-
please fix `bootstrap::Build.llvm_tools_vers`");
961+
// XXX should we use LLVM version here?
962+
// let stdout = build_helper::output(
963+
// Command::new(self.llvm_out(self.config.build).join("build/bin/llvm-size"))
964+
// .arg("--version"),
965+
// );
966+
967+
// for line in stdout.lines() {
968+
// if line.contains("LLVM version") {
969+
// if let Some(vers) = line.split_whitespace().nth(2) {
970+
// return vers.to_string();
971+
// }
972+
// }
973+
// }
974+
975+
// panic!("The output of $LLVM_TOOL has changed; \
976+
// please fix `bootstrap::Build.llvm_tools_vers`");
977+
978+
self.rust_version()
976979
}
977980

978981
/// Returns the `version` string associated with this compiler for Rust

0 commit comments

Comments
 (0)