Index: build/toolchain/win/BUILD.gn |
diff --git a/build/toolchain/win/BUILD.gn b/build/toolchain/win/BUILD.gn |
index 34198e83519bcf73c5227db1e8012a7d3e0dae6d..4a903d69e1fd0cef17594d38ba59c407ef81a426 100644 |
--- a/build/toolchain/win/BUILD.gn |
+++ b/build/toolchain/win/BUILD.gn |
@@ -163,6 +163,11 @@ template("msvc_toolchain") { |
link_output = libname |
depend_output = libname |
+ # Since the above commands only updates the .lib file when it changes, ask |
+ # Ninja to check if the timestamp actually changed to know if downstream |
+ # dependencies should be recompiled. |
+ restat = true |
+ |
# The use of inputs_newline is to work around a fixed per-line buffer |
# size in the linker. |
rspfile_content = "{{libs}} {{solibs}} {{inputs_newline}} {{ldflags}}" |