SR-2660 Teach the driver to accept multiple swiftmodules as linker inputs, for static linking
SR-3280 Package manager should link main swiftmodule in executables
I am not really sure if this a bug or not. Basically I am trying to fix https://bugs.swift.org/browse/SR-3280 by passing swiftmodule file of main executable along with objects in swiftpm's link command.
It works but swift tries to generate a temporary module which makes it want all the search paths again. For example this is what happens on linux:
$ cat main.swift
let str = "Hello world"