]> git.lizzy.rs Git - rust.git/commit
Don't emit rerun-if-changed on llvm-config if using system LLVM
authorLuca Barbieri <luca@luca-barbieri.com>
Fri, 10 Apr 2020 20:42:19 +0000 (22:42 +0200)
committerMark Rousskov <mark.simulacrum@gmail.com>
Sat, 11 Apr 2020 21:49:16 +0000 (17:49 -0400)
commit3dd500de373757fd2b118db0c999e48dd01ff894
tree435d7c6cba1f13f63078e02b7bbacf9872f88d3f
parent53d58dbf5f8a65189e5f97ef46da6593484a9e79
Don't emit rerun-if-changed on llvm-config if using system LLVM

The code was broken because it printed "llvm-config" instead of the
absolute path to the llvm-config executable, causing Cargo to always
rebuild librustc_llvm if using system LLVM.

Also, it's not the build system's job to rebuild when a system library
changes, so we simply don't emit "rerun-if-changed" if a path to LLVM
was not explicitly provided.
src/librustc_llvm/build.rs