Skip to content

Commit b01c08c

Browse files
authored
Don't get last write time of empty list of files (#127513)
Without this condition, fresh test runs fail because there are no 'done' files indicating r2r compilation already completed
1 parent 40365cd commit b01c08c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/tests/Common/tests.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@
220220
<_Crossgen2InCoreRootTime>$([System.IO.File]::GetLastWriteTime('$(_Crossgen2DstPath)').Ticks)</_Crossgen2InCoreRootTime>
221221
</PropertyGroup>
222222

223-
<ItemGroup>
223+
<ItemGroup Condition="'@(_IlCg2DoneFiles)' != ''">
224224
<_StaleIlCg2DoneFile Include="@(_IlCg2DoneFiles)"
225225
Condition="$([System.IO.File]::GetLastWriteTime('%(Identity)').Ticks) &lt; $(_Crossgen2InCoreRootTime)" />
226226
</ItemGroup>

0 commit comments

Comments
 (0)