Re: [swift-users] Swift Package Manager: Linker Flags

2016-01-04 Thread Daniel Dunbar via swift-users
You can't do this via the package manager, but you can include "link" declarations in the module map itself which specify additional linker arguments to plumb through when that module is used. See: http://clang.llvm.org/docs/Modules.html#link-declaration Here is a concrete example, which is ho

[swift-users] Swift Package Manager: Linker Flags

2016-01-04 Thread Ilija Tovilo via swift-users
Happy new year everyone!  I’m writing a wrapper around the LLVM-C API for Swift and thought it’d be fun to use the Swift Package Manager. So I created a repository for the module.modulemap that includes the relevant .h files (as instructed in Documentation/SystemModules.md in the GitHub reposi