CMake: LLVMConfig assigns LLVMX86 to the `native' component
authorOscar Fuentes <ofv@wanadoo.es>
Mon, 17 Aug 2009 01:41:46 +0000 (01:41 +0000)
committerOscar Fuentes <ofv@wanadoo.es>
Mon, 17 Aug 2009 01:41:46 +0000 (01:41 +0000)
name. Updated LLVM_LINK_COMPONENTS of Kaleidoscope.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79219 91177308-0d34-0410-b5e6-96231b3b80d8

cmake/modules/LLVMConfig.cmake
examples/Kaleidoscope/CMakeLists.txt

index 1d8d090986dcaadd9194abf1ddfe6239039e4b4c..7c75dd029e09d5d479d348aaac7d6f7eb0ba4623 100755 (executable)
@@ -59,8 +59,8 @@ function(explicit_map_components_to_libraries out_libs)
         list(APPEND expanded_components "LLVM${c}Info")
       endif()
     elseif( c STREQUAL "native" )
-      # TODO: we assume ARCH is X86. In this case, we must use nativecodegen
-      # component instead. Do nothing, as in llvm-config script.
+      # TODO: we assume ARCH is X86.
+      list(APPEND expanded_components "LLVMX86CodeGen")
     elseif( c STREQUAL "nativecodegen" )
       # TODO: we assume ARCH is X86.
       list(APPEND expanded_components "LLVMX86CodeGen")
index 9a18aae30534f946b0cb806ab9f79dde0331fa83..af32fbfc51265b1924cbd15a9b7ecbc97630da9c 100644 (file)
@@ -1,4 +1,4 @@
-set(LLVM_LINK_COMPONENTS core jit native)
+set(LLVM_LINK_COMPONENTS core jit interpreter native)
 
 add_llvm_example(Kaleidoscope
   toy.cpp