[LLVMbugs] [Bug 21134] New: CMake build doesn't set LLVM_ENABLE_PLUGINS properly
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Oct 2 11:43:59 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=21134
Bug ID: 21134
Summary: CMake build doesn't set LLVM_ENABLE_PLUGINS properly
Product: new-bugs
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: ransford at cs.washington.edu
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 13119
--> http://llvm.org/bugs/attachment.cgi?id=13119&action=edit
CMakeLists.txt
Building {llvm,cfe,compiler-rt}-3.5.0 out of tree with CMake correctly puts the
"AddLLVM" CMake files in $PREFIX/share/llvm/cmake/, but trying to use this
machinery to build an out-of-tree pass with CMake, the
add_llvm_loadable_module() function complains "Loadable modules not supported
on this platform" and generates a Makefile that doesn't build the pass. Under
{llvm,cfe}-3.4.2 and compiler-rt-3.4 with identical CMake build commands for
LLVM and the pass, CMake produced a correct Makefile.
Both versions of LLVM (+ Clang, + compiler-rt) built with (substitute 3.4.2,
3.5.0 for X.X.X):
$ cmake -DLLVM_TARGETS_TO_BUILD=X86 -DCMAKE_BUILD_TYPE=Debug
-DCMAKE_INSTALL_PREFIX=/tmp/llvm-X.X.X /tmp/llvm-X.X.X.src
Pass code and CMakeLists.txt attached. Build with:
$ mkdir build
$ cd build
$ cmake -DLLVM_ROOT=/tmp/llvm-X.X.X ..
It appears that the rules in $PREFIX/share/llvm/cmake/ aren't setting
LLVM_ENABLE_PLUGINS properly when X.X.X == 3.5.0.
Tested on both Linux and OS X (Mavericks) -- same bug.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20141002/d7bb0a7c/attachment.html>
More information about the llvm-bugs
mailing list