[llvm-commits] [PATCH][CMake] Handle turning off LLVM_ENABLE_FFI.

arrowdodger 6yearold at gmail.com
Sat Apr 2 05:14:53 PDT 2011


If someone first configure build with LLVM_ENABLE_FFI=1 and then turn it
off, the build will fail in lib/ExecutionEngine/Interpreter because
Interpreter will try still to #include <ffi/ffi.h>, but there are no
include_directories(${FFI_INCLUDE_DIR}) now.
This patch unset()'s HAVE_FFI_H and HAVE_FFI_FFI_H from cache file if
LLVM_ENABLE_FFI=0. This forces CMake to update config.h.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110402/641bcc73/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config-ix.ffi.patch
Type: text/x-patch
Size: 579 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110402/641bcc73/attachment.bin>


More information about the llvm-commits mailing list