]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #41047 - cuviper:src_is_git, r=alexcrichton
authorCorey Farwell <coreyf@rwell.org>
Fri, 7 Apr 2017 13:20:04 +0000 (09:20 -0400)
committerGitHub <noreply@github.com>
Fri, 7 Apr 2017 13:20:04 +0000 (09:20 -0400)
commitef9eee74026bb00b75c45f31a692052855ae7e8a
tree2f6502c7009a28e7244415df2a1e9dd3183d2146
parentd860b1c0039eca3f013362a6f59b59d27c3e51dc
parent4d32ff4e498c391d65b44d26cfb453651dc3da7b
Rollup merge of #41047 - cuviper:src_is_git, r=alexcrichton

Only use cargo-vendor if building from git sources

The only time we need to vendor sources is when building from git.  If one is
building from a rustc source tarball, everything should already be in place.
This also matters for distros which do offline builds, as they can't install
cargo-vendor this way.

This adds a common `Build::src_is_git` flag, and then uses it in the dist-src
target to decide whether to install or use `cargo-vendor` at all.

Fixes #41042.