[llvm] r215207 - Fix for #20408 - CMake LLVM_ENABLE_FFI=ON build fails on reconfigure

Josh Klontz josh.klontz at gmail.com
Fri Aug 8 07:32:56 PDT 2014


Author: jklontz
Date: Fri Aug  8 09:32:56 2014
New Revision: 215207

URL: http://llvm.org/viewvc/llvm-project?rev=215207&view=rev
Log:
Fix for #20408 - CMake LLVM_ENABLE_FFI=ON build fails on reconfigure

Modified:
    llvm/trunk/cmake/config-ix.cmake

Modified: llvm/trunk/cmake/config-ix.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/config-ix.cmake?rev=215207&r1=215206&r2=215207&view=diff
==============================================================================
--- llvm/trunk/cmake/config-ix.cmake (original)
+++ llvm/trunk/cmake/config-ix.cmake Fri Aug  8 09:32:56 2014
@@ -258,12 +258,12 @@ endif ()
 
 if( LLVM_ENABLE_FFI )
   find_path(FFI_INCLUDE_PATH ffi.h PATHS ${FFI_INCLUDE_DIR})
-  if( FFI_INCLUDE_PATH )
+  if( EXISTS "${FFI_INCLUDE_PATH}/ffi.h" )
     set(FFI_HEADER ffi.h CACHE INTERNAL "")
     set(HAVE_FFI_H 1 CACHE INTERNAL "")
   else()
     find_path(FFI_INCLUDE_PATH ffi/ffi.h PATHS ${FFI_INCLUDE_DIR})
-    if( FFI_INCLUDE_PATH )
+    if( EXISTS "${FFI_INCLUDE_PATH}/ffi/ffi.h" )
       set(FFI_HEADER ffi/ffi.h CACHE INTERNAL "")
       set(HAVE_FFI_FFI_H 1 CACHE INTERNAL "")
     endif()





More information about the llvm-commits mailing list