From 349df2c976cd031be9824a7d8f447fd533810821 Mon Sep 17 00:00:00 2001 From: Oscar Fuentes Date: Mon, 17 Aug 2009 01:41:46 +0000 Subject: [PATCH] CMake: LLVMConfig assigns LLVMX86 to the `native' component name. Updated LLVM_LINK_COMPONENTS of Kaleidoscope. llvm-svn: 79219 --- llvm/cmake/modules/LLVMConfig.cmake | 4 ++-- llvm/examples/Kaleidoscope/CMakeLists.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/cmake/modules/LLVMConfig.cmake b/llvm/cmake/modules/LLVMConfig.cmake index 1d8d090986dc..7c75dd029e09 100755 --- a/llvm/cmake/modules/LLVMConfig.cmake +++ b/llvm/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/llvm/examples/Kaleidoscope/CMakeLists.txt b/llvm/examples/Kaleidoscope/CMakeLists.txt index 9a18aae30534..af32fbfc5126 100644 --- a/llvm/examples/Kaleidoscope/CMakeLists.txt +++ b/llvm/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