Swift: Ninja: Pass module name to all swift builds
Executables that don't export a public API should not emit a swiftmodule, but the swift modulename is observable from within the program, so we should still set the module name on executable builds.
Fixes: #25710 (closed)
Backport: release
Topic-rename: swift-exe-module-name
Edited by Brad King