[build] Advise ninja to ignore out-of-date .lib files.

MSVC won't update .lib file if there were no changes, and this restat attribute tells ninja to honor that.

Change-Id: If78184aecf13578617570478cbf158276981e25d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/120747
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Alexander Aprelev <aam@google.com>
This commit is contained in:
Alexander Aprelev 2019-10-09 03:16:50 +00:00 committed by commit-bot@chromium.org
parent b12bed36a8
commit cee3f71e29

View file

@ -182,6 +182,8 @@ template("msvc_toolchain") {
# 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}}"
restat = true
}
tool("link") {
@ -206,6 +208,8 @@ template("msvc_toolchain") {
# The use of inputs_newline is to work around a fixed per-line buffer
# size in the linker.
rspfile_content = "{{inputs_newline}} {{libs}} {{solibs}} {{ldflags}}"
restat = true
}
tool("stamp") {