Restat clang linker outputs
clang -Wl,--out-implib doesn't update its output file if it hasn't
changed, always restat the outputs.
Fixes: 129553377
Test: m checkbuild && m checkbuild
Change-Id: I2cb19e1b8280fd69c8a9b2143f55760ec05630f8
diff --git a/cc/builder.go b/cc/builder.go
index dab887c..6dd7c05 100644
--- a/cc/builder.go
+++ b/cc/builder.go
@@ -70,6 +70,8 @@
CommandDeps: []string{"$ldCmd"},
Rspfile: "${out}.rsp",
RspfileContent: "${in}",
+ // clang -Wl,--out-implib doesn't update its output file if it hasn't changed.
+ Restat: true,
},
"ldCmd", "crtBegin", "libFlags", "crtEnd", "ldFlags")