about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2019-09-04 16:02:31 -0700
committerJosh Stone <jistone@redhat.com>2019-09-04 16:02:31 -0700
commit53fe76479aab03b1fbe5b7184f45484886f769b1 (patch)
tree404e49596a04a5868253de602d4d70f0d0196fa3 /src/rustllvm/RustWrapper.cpp
parentc6e9c76c59e3c10acd63ca9ec157a8894ea1a068 (diff)
downloadrust-53fe76479aab03b1fbe5b7184f45484886f769b1.tar.gz
rust-53fe76479aab03b1fbe5b7184f45484886f769b1.zip
Assume non-git LLVM is fresh if the stamp file exists
Rustbuild usually writes the LLVM submodule commit in a stamp file, so
we can avoid rebuilding it unnecessarily. However, for builds from a
source tarball (non-git), we were assuming a rebuild is always needed.
This can cause a lot of extra work if any environment like `CFLAGS`
changed between steps like build and install, which are often separate
in distro builds.

Now we also write an empty stamp file if the git commit is unknown, and
its presence is trusted to indicate that no rebuild is needed. An info
message reports that this is happening, along with the stamp file path
that can be deleted to force a rebuild anyway.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions