Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / msvc / compare-config-files.ps1
index 9122f1e8fc8dc7b3f892c9c95137cd1e33283453..72667c0324bda7141d510022212c68686255e3e0 100644 (file)
@@ -36,7 +36,8 @@ $comparedLines | foreach {
     {
                ##Look for diffs.
                $mono_version = (Select-String -InputObject $_.InputObject -pattern '#define VERSION \"(.*)\"')
-               if ($mono_version -eq $null) {
+               $mono_corlib_version = (Select-String -InputObject $_.InputObject -pattern '#define MONO_CORLIB_VERSION')
+               if ($mono_version -eq $null -And $mono_corlib_version -eq $null) {
                        Write-Host "Changes detected, versions doesn't match. Configuration must to be replaced."
                        exit 1;
                }