Swift: Fix regression in linking to interface libraries
Since !4320 (merged) we internally call GetAllConfigCompileLanguages
on all directly linked targets without checking if they are interface libraries that don't compile at all. That violates an internal assumption and assertion.
Fixes: #20977 (closed)
Backport: release