[swift-users] Swift Package Manager: Linker Flags
Greg Parker
gparker at apple.com
Tue Feb 23 17:43:45 CST 2016
> On Feb 22, 2016, at 7:44 AM, Stephen Celis via swift-users <swift-users at swift.org> wrote:
>
> Hi all,
>
> I've also been having trouble getting a Swift interface to LLVM's C API. The basic gist is here:
>
> https://gist.github.com/stephencelis/5de13eeb9743e7a3aed3 <https://gist.github.com/stephencelis/5de13eeb9743e7a3aed3>
>
> I've:
>
> - Installed LLVM via homebrew, so it lives in "/usr/local/opt/llvm" (I've also built LLVM myself and have the same ).
> - Passed "-I" and "-L" to send includes/lib paths to the "-Xcc" and "-Xlinker" flags. (Can a module map or package be configured directly with these paths? Or do all dependent projects need to use these flags, as well?
> - Added many more LLVM headers/links to the module map and continued to have the same issue.
>
> The linker's still having trouble. I'm probably missing something very basic.
Did you forget to actually link to libLLVMCore? I see your -L flags in that build log, but I don't see anything like `-Xlinker -lLLVMCore`.
--
Greg Parker gparker at apple.com Runtime Wrangler
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20160223/e48ef22b/attachment.html>
More information about the swift-users
mailing list