[llvm-dev] Using LLD to link against third-party libraries? How?
Zachary Turner via llvm-dev
llvm-dev at lists.llvm.org
Wed Dec 12 12:03:25 PST 2018
If you want to use the LLVM toolchain in Visual Studio, you should install
the extension from here:
After that, set LLVM to be the toolchain in your IDE project settings,
don't try doing it from a command prompt.
Also, just to re-iterate, use clang-cl.exe instead of clang++.exe.
I can help you get a self-host build working (compiling clang and lld using
itself), but please try to get an MSVC build working *first*. Since you
are having difficulties, it helps to do simpler things first, and once you
have that working, move to something more complicated.
On Wed, Dec 12, 2018 at 11:34 AM Osman Zakir via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> I mentioned the command I used in of my messages in this thread. And of
> course I used clang++.exe to do it, not "LLVM". I just meant I was using
> LLVM toolchain on the Developer Command Prompt for VS 2017. Anyway, I'm
> trying again to build LLVM now. I do have the MSVC compiler toolchain, but
> I want to try using the LLVM toolchain in Visual Studio since it's possible
> to do so.
> *From:* David Greene <dag at cray.com>
> *Sent:* Thursday, December 13, 2018 12:18 AM
> *To:* Osman Zakir
> *Cc:* llvm-dev at lists.llvm.org
> *Subject:* Re: [llvm-dev] Using LLD to link against third-party
> libraries? How?
> Osman Zakir <osmanzakir90 at hotmail.com> writes:
> > LLVM on a Developer Command Prompt.
> I don't know what you mean by that. "LLVM" isn't a command. Can you
> post the exact command you use to link?
> > The ones I want to fix first are the ones from Boost and Jinja2Cpp. I
> > saw some from those as well.
> I'm not at all familiar with Jinja2Cpp. Is it possible it needs some
> explicit template instantiations?
> > If there any standard library ones missing, could it be because I
> > couldn't get it to build libcxx? I did try to include that, but it
> > seems to be missing. What should I do?
> Are you saying you tried to build libc++ and couldn't? I don't know
> what C++ standard library clang uses by default on Windows. If you
> don't have a C++ standard library nothing will work.
> I would concentrate on the standard library symbols first, because the
> way that works is well-understood by everyone here. Once you get that
> working you may find a lot of the other stuff goes away.
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev