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: [email protected]
Reporter: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs