[llvm-dev] Build libLTO.a instead of libLTO.dylib with Cmake

Mehdi Amini via llvm-dev llvm-dev at lists.llvm.org
Mon Dec 14 10:54:58 PST 2015


Hi,

Having a look at tools/lto/CMakeLists.txt it is unconditionally defined as a shared library:

add_llvm_library(LTO SHARED ${SOURCES})

Have you tried removing the “SHARED” keyword here?

— 
Mehdi



> On Dec 14, 2015, at 10:07 AM, vivek pandya via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> 
> Hello, 
> 
> Is there any CMake variable available to build LLVM libs as static libraries. I found one -DLIBCLANG_BUILD_STATIC=ON but what if I want libLTO.a instead of libLTO.dylib ?
> 
> 
> Vivek Pandya
> 
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20151214/6fa64069/attachment.html>


More information about the llvm-dev mailing list