-modulewrap invocations create an object file.
The target should be passed along so that the object file is created for the same target as any other outputs.
inside a swift ast section in an object file so it can be passed to the
linker. The driver automatically wraps merged swiftmodules iff the target
is ELF.
rdar://problem/22407666
Swift SVN r31641