aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOscar Fuentes <ofv@wanadoo.es>2009-08-17 01:41:46 +0000
committerOscar Fuentes <ofv@wanadoo.es>2009-08-17 01:41:46 +0000
commit9f2c4964d9feaff00d110ae9c5000dd9c57b394d (patch)
treeef47d0da60abe08afdd4b569015e85cc973ddc56
parentafae48edd6a13191c5ceef3e46def83ac15511cd (diff)
downloadexternal_llvm-9f2c4964d9feaff00d110ae9c5000dd9c57b394d.zip
external_llvm-9f2c4964d9feaff00d110ae9c5000dd9c57b394d.tar.gz
external_llvm-9f2c4964d9feaff00d110ae9c5000dd9c57b394d.tar.bz2
CMake: LLVMConfig assigns LLVMX86 to the `native' component
name. Updated LLVM_LINK_COMPONENTS of Kaleidoscope. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79219 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-xcmake/modules/LLVMConfig.cmake4
-rw-r--r--examples/Kaleidoscope/CMakeLists.txt2
2 files changed, 3 insertions, 3 deletions
diff --git a/cmake/modules/LLVMConfig.cmake b/cmake/modules/LLVMConfig.cmake
index 1d8d090..7c75dd0 100755
--- a/cmake/modules/LLVMConfig.cmake
+++ b/cmake/modules/LLVMConfig.cmake
@@ -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")
diff --git a/examples/Kaleidoscope/CMakeLists.txt b/examples/Kaleidoscope/CMakeLists.txt
index 9a18aae..af32fbf 100644
--- a/examples/Kaleidoscope/CMakeLists.txt
+++ b/examples/Kaleidoscope/CMakeLists.txt
@@ -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