From 3aabdebde23415b488c9b8f4f470ab3e0ec81176 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Tue, 10 Dec 2013 11:13:32 +0000 Subject: [CMake] Update LLVM_LINK_COMPONENTS for each CMakeLists.txt. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196908 91177308-0d34-0410-b5e6-96231b3b80d8 --- examples/BrainF/CMakeLists.txt | 9 ++++++++- examples/ExceptionDemo/CMakeLists.txt | 9 ++++++++- examples/Fibonacci/CMakeLists.txt | 9 ++++++++- examples/HowToUseJIT/CMakeLists.txt | 9 ++++++++- examples/Kaleidoscope/Chapter3/CMakeLists.txt | 5 ++++- examples/Kaleidoscope/Chapter4/CMakeLists.txt | 11 ++++++++++- examples/Kaleidoscope/Chapter5/CMakeLists.txt | 11 ++++++++++- examples/Kaleidoscope/Chapter6/CMakeLists.txt | 11 ++++++++++- examples/Kaleidoscope/Chapter7/CMakeLists.txt | 13 ++++++++++++- examples/ModuleMaker/CMakeLists.txt | 6 +++++- examples/ParallelJIT/CMakeLists.txt | 9 ++++++++- 11 files changed, 91 insertions(+), 11 deletions(-) (limited to 'examples') diff --git a/examples/BrainF/CMakeLists.txt b/examples/BrainF/CMakeLists.txt index 7bec105cdc..025d093364 100644 --- a/examples/BrainF/CMakeLists.txt +++ b/examples/BrainF/CMakeLists.txt @@ -1,4 +1,11 @@ -set(LLVM_LINK_COMPONENTS jit bitwriter nativecodegen interpreter) +set(LLVM_LINK_COMPONENTS + BitWriter + Core + ExecutionEngine + JIT + Support + nativecodegen + ) add_llvm_example(BrainF BrainF.cpp diff --git a/examples/ExceptionDemo/CMakeLists.txt b/examples/ExceptionDemo/CMakeLists.txt index ea818faf3b..5324acd21e 100644 --- a/examples/ExceptionDemo/CMakeLists.txt +++ b/examples/ExceptionDemo/CMakeLists.txt @@ -1,4 +1,11 @@ -set(LLVM_LINK_COMPONENTS jit mcjit nativecodegen) +set(LLVM_LINK_COMPONENTS + Core + ExecutionEngine + MCJIT + Support + nativecodegen + ) + set(LLVM_REQUIRES_EH 1) add_llvm_example(ExceptionDemo diff --git a/examples/Fibonacci/CMakeLists.txt b/examples/Fibonacci/CMakeLists.txt index 693761241f..724a0f6715 100644 --- a/examples/Fibonacci/CMakeLists.txt +++ b/examples/Fibonacci/CMakeLists.txt @@ -1,4 +1,11 @@ -set(LLVM_LINK_COMPONENTS jit interpreter nativecodegen) +set(LLVM_LINK_COMPONENTS + Core + ExecutionEngine + Interpreter + JIT + Support + nativecodegen + ) add_llvm_example(Fibonacci fibonacci.cpp diff --git a/examples/HowToUseJIT/CMakeLists.txt b/examples/HowToUseJIT/CMakeLists.txt index 428b53ffb9..88aed026bf 100644 --- a/examples/HowToUseJIT/CMakeLists.txt +++ b/examples/HowToUseJIT/CMakeLists.txt @@ -1,4 +1,11 @@ -set(LLVM_LINK_COMPONENTS jit interpreter nativecodegen) +set(LLVM_LINK_COMPONENTS + Core + ExecutionEngine + Interpreter + JIT + Support + nativecodegen + ) add_llvm_example(HowToUseJIT HowToUseJIT.cpp diff --git a/examples/Kaleidoscope/Chapter3/CMakeLists.txt b/examples/Kaleidoscope/Chapter3/CMakeLists.txt index 1af8db00a1..a98d7df104 100644 --- a/examples/Kaleidoscope/Chapter3/CMakeLists.txt +++ b/examples/Kaleidoscope/Chapter3/CMakeLists.txt @@ -1,4 +1,7 @@ -set(LLVM_LINK_COMPONENTS core) +set(LLVM_LINK_COMPONENTS + Core + Support + ) add_llvm_example(Kaleidoscope-Ch3 toy.cpp diff --git a/examples/Kaleidoscope/Chapter4/CMakeLists.txt b/examples/Kaleidoscope/Chapter4/CMakeLists.txt index 0d1ac533f0..72a9f0512c 100644 --- a/examples/Kaleidoscope/Chapter4/CMakeLists.txt +++ b/examples/Kaleidoscope/Chapter4/CMakeLists.txt @@ -1,4 +1,13 @@ -set(LLVM_LINK_COMPONENTS core jit interpreter native) +set(LLVM_LINK_COMPONENTS + Analysis + Core + ExecutionEngine + InstCombine + JIT + ScalarOpts + Support + nativecodegen + ) add_llvm_example(Kaleidoscope-Ch4 toy.cpp diff --git a/examples/Kaleidoscope/Chapter5/CMakeLists.txt b/examples/Kaleidoscope/Chapter5/CMakeLists.txt index 2d75ad3592..c7d0276194 100644 --- a/examples/Kaleidoscope/Chapter5/CMakeLists.txt +++ b/examples/Kaleidoscope/Chapter5/CMakeLists.txt @@ -1,4 +1,13 @@ -set(LLVM_LINK_COMPONENTS core jit interpreter native) +set(LLVM_LINK_COMPONENTS + Analysis + Core + ExecutionEngine + InstCombine + JIT + ScalarOpts + Support + nativecodegen + ) add_llvm_example(Kaleidoscope-Ch5 toy.cpp diff --git a/examples/Kaleidoscope/Chapter6/CMakeLists.txt b/examples/Kaleidoscope/Chapter6/CMakeLists.txt index 2e15a5f7df..669c7eb171 100644 --- a/examples/Kaleidoscope/Chapter6/CMakeLists.txt +++ b/examples/Kaleidoscope/Chapter6/CMakeLists.txt @@ -1,4 +1,13 @@ -set(LLVM_LINK_COMPONENTS core jit interpreter native) +set(LLVM_LINK_COMPONENTS + Analysis + Core + ExecutionEngine + InstCombine + JIT + ScalarOpts + Support + nativecodegen + ) add_llvm_example(Kaleidoscope-Ch6 toy.cpp diff --git a/examples/Kaleidoscope/Chapter7/CMakeLists.txt b/examples/Kaleidoscope/Chapter7/CMakeLists.txt index da3839843b..0a0c8e7cab 100644 --- a/examples/Kaleidoscope/Chapter7/CMakeLists.txt +++ b/examples/Kaleidoscope/Chapter7/CMakeLists.txt @@ -1,4 +1,15 @@ -set(LLVM_LINK_COMPONENTS core jit interpreter native) +set(LLVM_LINK_COMPONENTS + Analysis + Core + ExecutionEngine + InstCombine + JIT + ScalarOpts + Support + TransformUtils + nativecodegen + ) + set(LLVM_REQUIRES_RTTI 1) add_llvm_example(Kaleidoscope-Ch7 diff --git a/examples/ModuleMaker/CMakeLists.txt b/examples/ModuleMaker/CMakeLists.txt index 81e911560b..a73909a13b 100644 --- a/examples/ModuleMaker/CMakeLists.txt +++ b/examples/ModuleMaker/CMakeLists.txt @@ -1,4 +1,8 @@ -set(LLVM_LINK_COMPONENTS bitwriter) +set(LLVM_LINK_COMPONENTS + BitWriter + Core + Support + ) add_llvm_example(ModuleMaker ModuleMaker.cpp diff --git a/examples/ParallelJIT/CMakeLists.txt b/examples/ParallelJIT/CMakeLists.txt index fbdc6e5fc1..8673917f55 100644 --- a/examples/ParallelJIT/CMakeLists.txt +++ b/examples/ParallelJIT/CMakeLists.txt @@ -1,4 +1,11 @@ -set(LLVM_LINK_COMPONENTS jit interpreter nativecodegen) +set(LLVM_LINK_COMPONENTS + Core + ExecutionEngine + Interpreter + JIT + Support + nativecodegen + ) add_llvm_example(ParallelJIT ParallelJIT.cpp -- cgit v1.2.3