[LLVMdev] [PATCH] OS X - BugpointPasses and LLVMHello have extension ".so" when using CMake

Wesley Peck peckw at wesleypeck.com
Tue Dec 21 15:50:29 PST 2010


For a while now I have noticed that when I build LLVM using CMake on my OS X machine there are two dynamically linked libraries, BugpointPasses and LLVMHello, that are built with the extension ".so" instead of the extension ".dylib". This has been causing four test cases to fail when running "make check".

The attached patch modifies add_llvm_loadable_module in the CMake build system with a piece of logic found in add_clang_library in Clang's build system. I'm not quite sure what the logic is doing, but it did cause the two preview libraries to be emitted with the correct ".dylib" extension and allowed "make check" to run successfully.

I've tested this with the two systems that I regularly build LLVM on:
	1. Console build, 64-bit OS X but emitting 32-bit libraries
	2. Console build, 64-bit Linux

The patch has not been tested using XCode or any other build target.

--
Wesley Peck
University of Kansas
SLDG Laboratory

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20101221/aff1b04c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm_shared_library.patch
Type: application/octet-stream
Size: 583 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20101221/aff1b04c/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20101221/aff1b04c/attachment-0001.html>


More information about the llvm-dev mailing list