]> git.lizzy.rs Git - rust.git/commitdiff
don't rebuild alloc_jemalloc if jemalloc's .git directory has changed
authorJorge Aparicio <japaricious@gmail.com>
Thu, 1 Dec 2016 18:17:01 +0000 (13:17 -0500)
committerJorge Aparicio <japaricious@gmail.com>
Thu, 1 Dec 2016 18:17:01 +0000 (13:17 -0500)
the .git directory is modified by `bootstrap` when it updates this git
submodule; this triggered rebuilds every time `bootstrap` was called.

likely fixes #38094

src/liballoc_jemalloc/build.rs

index 08a1f8ae8c6caf9d33915fe25bcb6e2649196358..50149dfd65f7893d689eeac237e6ec0fc115fdd3 100644 (file)
@@ -69,6 +69,7 @@ fn main() {
         .read_dir()
         .unwrap()
         .map(|e| e.unwrap())
+        .filter(|e| &*e.file_name() != ".git")
         .collect::<Vec<_>>();
     while let Some(entry) = stack.pop() {
         let path = entry.path();