This was missed in D95972 / 7c49052b170f76f19be64a5572d31ad8f5df4e61,
as this codepath isn't exercised by CI yet.
FWIW, I should be able to add the necessary things to the windows
premerge runner image now, so we hopefully can add CI for the mingw
configuration soon. (Just waiting for some other updates to bundle
up more updates to the runner image at once, when botering someone to
rebuild it.)