<html><body><div>Happy new year everyone! </div><div><br></div><div>I’m writing a wrapper around the LLVM-C API for Swift and thought it’d be fun to use the Swift Package Manager.</div><div>So I created a repository for the module.modulemap that includes the relevant .h files (as instructed in Documentation/SystemModules.md in the GitHub repository).</div><div><br></div><div>The package itself compiles fine and building the project that includes it works too, except that it doesn’t link. </div><div>The problem is that you have to pass some LLVM linker flags and I have no idea how to do that with the Swift Package Manager.</div><div><br></div><div>I’ve searched the tutorials, documentation and the source code but couldn’t find a solution.</div><div>Is there a way to add linker flags / compile flags to your Package.swift file?</div><div><br></div><div>It would be helpful to pass those flags manually, at least until the package manager is mature enough to handle those things on its own.</div><div><br></div><div>Thanks for the help!</div></body></html>