diff options
| author | Jorge Aparicio <jorge@japaric.io> | 2018-06-03 13:56:58 +0200 |
|---|---|---|
| committer | Jorge Aparicio <jorge@japaric.io> | 2018-06-03 18:23:01 +0200 |
| commit | a2c2ed3c0cba4485d97219c2f4e25f0e4f7654d4 (patch) | |
| tree | c0ebcd23cb54aaa0a781e697df443b81f3fb2de5 /src/bootstrap/lib.rs | |
| parent | 66a7db9a3593b1bc4744239a21520369f0418d3c (diff) | |
| download | rust-a2c2ed3c0cba4485d97219c2f4e25f0e4f7654d4.tar.gz rust-a2c2ed3c0cba4485d97219c2f4e25f0e4f7654d4.zip | |
use rustc version as llvm-tools version
Diffstat (limited to 'src/bootstrap/lib.rs')
| -rw-r--r-- | src/bootstrap/lib.rs | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/src/bootstrap/lib.rs b/src/bootstrap/lib.rs index cb135ad6f35..5bb9584a8da 100644 --- a/src/bootstrap/lib.rs +++ b/src/bootstrap/lib.rs @@ -958,21 +958,24 @@ impl Build { } fn llvm_tools_vers(&self) -> String { - let stdout = build_helper::output( - Command::new(self.llvm_out(self.config.build).join("build/bin/llvm-size")) - .arg("--version"), - ); - - for line in stdout.lines() { - if line.contains("LLVM version") { - if let Some(vers) = line.split_whitespace().nth(2) { - return vers.to_string(); - } - } - } - - panic!("The output of $LLVM_TOOL has changed; \ - please fix `bootstrap::Build.llvm_tools_vers`"); + // XXX should we use LLVM version here? + // let stdout = build_helper::output( + // Command::new(self.llvm_out(self.config.build).join("build/bin/llvm-size")) + // .arg("--version"), + // ); + + // for line in stdout.lines() { + // if line.contains("LLVM version") { + // if let Some(vers) = line.split_whitespace().nth(2) { + // return vers.to_string(); + // } + // } + // } + + // panic!("The output of $LLVM_TOOL has changed; \ + // please fix `bootstrap::Build.llvm_tools_vers`"); + + self.rust_version() } /// Returns the `version` string associated with this compiler for Rust |
