[cfe-dev] static linking

Alexey Zborovsky via cfe-dev cfe-dev at lists.llvm.org
Thu Apr 11 03:59:46 PDT 2019


Hello!

Alexey, you aren't right. At least when I build clang by Visual Studio (via cmake generated .sln/.vcproj) I get dynamically linked output.
And when I build my LibTooling project with these libs I cannot set static linking.

I also cannot find cmake options to set dynamic linking so I had to insert some additions into llvm's CMakeList.txt to build it statically.

It was LLVM 6.0.1. If LLVM 8.0.0 contains such options I will be grateful for this information.

Alex

-----Original Message-----
From: cfe-dev [mailto:cfe-dev-bounces at lists.llvm.org] On Behalf Of Alexey Sidorin via cfe-dev
Sent: Wednesday, April 10, 2019 10:29 PM
To: Kihong Heo <kihong.heo at gmail.com>; Clang Dev <cfe-dev at lists.llvm.org>
Subject: Re: [cfe-dev] static linking

Hello Kihong,

LLVM tools and clang are linked statically by default. Do you encounter any problems with building them statically?


09.04.2019 5:36, Kihong Heo via cfe-dev пишет:
> Hi list,
>
> I try to build llvm/clang from source code. Is there a simple way to link libraries statically?
>
> Thanks,
> Kihong
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev


_______________________________________________
cfe-dev mailing list
cfe-dev at lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev


More information about the cfe-dev mailing list