Fix incremental build when dummy version.cpp is generated (dotnet/coreclr#8547)
authorJan Vorlicek <janvorli@microsoft.com>
Fri, 9 Dec 2016 09:50:01 +0000 (10:50 +0100)
committerGitHub <noreply@github.com>
Fri, 9 Dec 2016 09:50:01 +0000 (10:50 +0100)
commit39b7315b193d0964c285206c5c5a90c3e63456e2
tree483d4b738278f9fd0d06226c3ad0e2850df59087
parentc1c3321a97dfce1312a6acbf4a6bbd4d0ce58de8
Fix incremental build when dummy version.cpp is generated (dotnet/coreclr#8547)

This change fixes a problem with incremental build on Unix. When the
version.cpp is generated by the build.sh as a dummy one with no real
version stamp in it, it is recreated every time the build.sh is run.
That means that build needs to rebuild that file and also re-link
all the components that include it.
This change tests the file presence and contents before actually
regenerating it.

Commit migrated from https://github.com/dotnet/coreclr/commit/101168c7a41058436f592bd9cb0a1a70f0f1b0ad
src/coreclr/build.sh