diff options
| author | bors <bors@rust-lang.org> | 2017-10-22 17:52:55 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-10-22 17:52:55 +0000 |
| commit | 1babcd03934c9299b44f6a51a719434dae224e9d (patch) | |
| tree | 3feff1a0e0d21c6f070bbb8b7f9d4d443eef99da | |
| parent | fc1a03d7d0b9b3cc612133c3368cbe45fb658abd (diff) | |
| parent | ebbcad9ae018e9c6bbd65c573a21783c8fbc0095 (diff) | |
| download | rust-1babcd03934c9299b44f6a51a719434dae224e9d.tar.gz rust-1babcd03934c9299b44f6a51a719434dae224e9d.zip | |
Auto merge of #45304 - kennytm:travis-color-color-conflict, r=aturon
Fix rustbuild --color conflict when building on Travis outside of Docker When trying to build rust on Travis without using `stamp` or `docker`, both `RUSTC_COLOR=1` and `TRAVIS=true` will separately pass `--color always` to the command line. This causes the build to fail due to "*Option 'color' given more than once*". In this PR, the `RUSTC_COLOR=1` will not be passed in the CI environment.
| -rw-r--r-- | src/bootstrap/compile.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bootstrap/compile.rs b/src/bootstrap/compile.rs index f837371bebe..a8162f0a92f 100644 --- a/src/bootstrap/compile.rs +++ b/src/bootstrap/compile.rs @@ -29,7 +29,7 @@ use build_helper::{output, mtime, up_to_date}; use filetime::FileTime; use serde_json; -use util::{exe, libdir, is_dylib, copy, read_stamp_file}; +use util::{exe, libdir, is_dylib, copy, read_stamp_file, CiEnv}; use {Build, Compiler, Mode}; use native; use tool; @@ -792,7 +792,7 @@ fn run_cargo(build: &Build, cargo: &mut Command, stamp: &Path) { cargo.arg("--message-format").arg("json") .stdout(Stdio::piped()); - if stderr_isatty() { + if stderr_isatty() && build.ci_env == CiEnv::None { // since we pass message-format=json to cargo, we need to tell the rustc // wrapper to give us colored output if necessary. This is because we // only want Cargo's JSON output, not rustcs. |
