Most tests were using %swift or similar substitutions, which did not
include the target triple and SDK. The driver was defaulting to the
host OS. Thus, we could not run the tests when the standard library was
not built for OS X.
Swift SVN r24504
In this case, the output filename is taken from the module name.
swift -emit-module x/y.swift
-> x/y.swiftmodule
swift -emit-module x/y.swift -module-name z
-> x/z.swiftmodule
swift -emit-module x/y.swift -o w/
-> w/y.swiftmodule
swift -emit-module x/y.swift -o w/ -module-name z
-> w/z.swiftmodule
swift -emit-module x/y.swift -o explicit.module
-> ./explicit.module
Swift SVN r6854