stop llvm from rebuilding on every git commit
authorJacob Lifshay <programmerjake@gmail.com>
Sat, 20 Oct 2018 00:19:28 +0000 (17:19 -0700)
committerJacob Lifshay <programmerjake@gmail.com>
Sat, 20 Oct 2018 00:19:28 +0000 (17:19 -0700)
shader-compiler-backend-llvm-7/build.rs

index c45929beb01a107db7c4b57086f40bc7b6c79a48..66f0eacf0484d5d3f2a5c05b691c390a4bb10c16 100644 (file)
@@ -121,6 +121,7 @@ fn make_config(llvm_dir: &Path) -> cmake::Config {
         .generator("Ninja")
         .define("LLVM_TARGETS_TO_BUILD", "host")
         .define("LLVM_CCACHE_BUILD", if found_ccache { "ON" } else { "OFF" })
+        .define("LLVM_APPEND_VC_REV", "OFF") // stop llvm needing relink after git commit
         .define(
             "LLVM_TARGET_ARCH",
             env::var("TARGET").unwrap().split("-").next().unwrap(),