From 6dd9e8563b143abca249b413942b45f855017d5c Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Tue, 31 Mar 2015 00:03:43 +0000 Subject: [PATCH] llvm/examples: Suppress building a few JIT examples. examples/ExceptionDemo/CMakeFiles/ExceptionDemo.dir/ExceptionDemo.cpp.o:(.data.rel.ro._ZTIN4llvm18MCJITMemoryManagerE[_ZTIN4llvm18MCJITMemoryManagerE]+0x10): undefined reference to `typeinfo for llvm::RuntimeDyld::MemoryManager' git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233647 91177308-0d34-0410-b5e6-96231b3b80d8 --- examples/ExceptionDemo/CMakeLists.txt | 2 ++ examples/Kaleidoscope/Chapter7/CMakeLists.txt | 2 ++ examples/Kaleidoscope/Chapter8/CMakeLists.txt | 2 ++ 3 files changed, 6 insertions(+) diff --git a/examples/ExceptionDemo/CMakeLists.txt b/examples/ExceptionDemo/CMakeLists.txt index 0908892a16c..f1715be4156 100644 --- a/examples/ExceptionDemo/CMakeLists.txt +++ b/examples/ExceptionDemo/CMakeLists.txt @@ -12,6 +12,8 @@ set(LLVM_LINK_COMPONENTS set(LLVM_REQUIRES_EH 1) set(LLVM_REQUIRES_RTTI 1) +set(EXCLUDE_FROM_ALL ON) + add_llvm_example(ExceptionDemo ExceptionDemo.cpp ) diff --git a/examples/Kaleidoscope/Chapter7/CMakeLists.txt b/examples/Kaleidoscope/Chapter7/CMakeLists.txt index dd181471be1..9a6f14da2c8 100644 --- a/examples/Kaleidoscope/Chapter7/CMakeLists.txt +++ b/examples/Kaleidoscope/Chapter7/CMakeLists.txt @@ -13,6 +13,8 @@ set(LLVM_LINK_COMPONENTS set(LLVM_REQUIRES_RTTI 1) +set(EXCLUDE_FROM_ALL ON) + add_kaleidoscope_chapter(Kaleidoscope-Ch7 toy.cpp ) diff --git a/examples/Kaleidoscope/Chapter8/CMakeLists.txt b/examples/Kaleidoscope/Chapter8/CMakeLists.txt index 6491599770b..a8b8daf615f 100644 --- a/examples/Kaleidoscope/Chapter8/CMakeLists.txt +++ b/examples/Kaleidoscope/Chapter8/CMakeLists.txt @@ -9,6 +9,8 @@ set(LLVM_LINK_COMPONENTS set(LLVM_REQUIRES_RTTI 1) +set(EXCLUDE_FROM_ALL ON) + add_kaleidoscope_chapter(Kaleidoscope-Ch8 toy.cpp ) -- 2.34.1