[LLVMdev] developping pass under osx 10.10.3

Tim Northover t.p.northover at gmail.com
Sat May 2 17:03:22 PDT 2015


On 2 May 2015 at 07:31, Willy WOLFF <willy.mh.wolff at gmail.com> wrote:
> include(AddLLVM)

This is including a CMake file from, which depends on (in this case)
LLVM_ENABLE_PLUGINS being defined from HandleLLVMOptions.cmake.

Probably other things too, I don't know enough about LLVM's CMake
build system to say what the preferred or most likely to work solution
is, but a couple of ideas are:

1. include(HandleLLVMOptions)
2. Add LLVM_ENABLE_PLUGINS to cmake/modules/LLVMConfig.cmake.in and
rebuild LLVM 3.6, then try again.
3. Hacky substitute for 2: just define LLVM_ENABLE_PLUGINS yourself
before include(AddLLVM).

1 might fail if HandleLLVMOptions depends on other variables being
defined (seems likely), the 2 & 3 might fail if AddLLVM depends on
other variables being defined (also seems likely).

Tim.



More information about the llvm-dev mailing list