Fix incremental build when dummy version.cpp is generated (#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)
commit101168c7a41058436f592bd9cb0a1a70f0f1b0ad
treeb760bde8331b934ebfe7459556abb4ecd02b0192
parent685de9132d453e08bc4ddb0c66f30d59fb4603b3
Fix incremental build when dummy version.cpp is generated (#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.
build.sh