Swift: Restore support for enabling with INTERFACE libraries
The check added in !3410 (merged) makes sense only for
executables because the
WIN32_EXECUTABLE property is defined only for
them. Running the check on other target types, particularly those that
do not link such as INTERFACE libraries, violates internal assumptions.
GetLinkerLanguage should not be called on such targets.
Fixes: #19528 (closed)