mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 21:32:10 +00:00
cmake: Add Kaleidoscope target
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225318 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2848d92620
commit
c182476974
@ -1,3 +1,10 @@
|
||||
add_custom_target(Kaleidoscope)
|
||||
|
||||
macro(add_kaleidoscope_chapter name)
|
||||
add_dependencies(Kaleidoscope ${name})
|
||||
add_llvm_example(${name} ${ARGN})
|
||||
endmacro(add_kaleidoscope_chapter name)
|
||||
|
||||
add_subdirectory(Chapter2)
|
||||
add_subdirectory(Chapter3)
|
||||
add_subdirectory(Chapter4)
|
||||
|
@ -1,3 +1,3 @@
|
||||
add_llvm_example(Kaleidoscope-Ch2
|
||||
add_kaleidoscope_chapter(Kaleidoscope-Ch2
|
||||
toy.cpp
|
||||
)
|
||||
|
@ -3,6 +3,6 @@ set(LLVM_LINK_COMPONENTS
|
||||
Support
|
||||
)
|
||||
|
||||
add_llvm_example(Kaleidoscope-Ch3
|
||||
add_kaleidoscope_chapter(Kaleidoscope-Ch3
|
||||
toy.cpp
|
||||
)
|
||||
|
@ -10,6 +10,6 @@ set(LLVM_LINK_COMPONENTS
|
||||
mcjit
|
||||
)
|
||||
|
||||
add_llvm_example(Kaleidoscope-Ch4
|
||||
add_kaleidoscope_chapter(Kaleidoscope-Ch4
|
||||
toy.cpp
|
||||
)
|
||||
|
@ -10,6 +10,6 @@ set(LLVM_LINK_COMPONENTS
|
||||
mcjit
|
||||
)
|
||||
|
||||
add_llvm_example(Kaleidoscope-Ch5
|
||||
add_kaleidoscope_chapter(Kaleidoscope-Ch5
|
||||
toy.cpp
|
||||
)
|
||||
|
@ -10,6 +10,6 @@ set(LLVM_LINK_COMPONENTS
|
||||
mcjit
|
||||
)
|
||||
|
||||
add_llvm_example(Kaleidoscope-Ch6
|
||||
add_kaleidoscope_chapter(Kaleidoscope-Ch6
|
||||
toy.cpp
|
||||
)
|
||||
|
@ -13,6 +13,6 @@ set(LLVM_LINK_COMPONENTS
|
||||
|
||||
set(LLVM_REQUIRES_RTTI 1)
|
||||
|
||||
add_llvm_example(Kaleidoscope-Ch7
|
||||
add_kaleidoscope_chapter(Kaleidoscope-Ch7
|
||||
toy.cpp
|
||||
)
|
||||
|
@ -13,6 +13,6 @@ set(LLVM_LINK_COMPONENTS
|
||||
|
||||
set(LLVM_REQUIRES_RTTI 1)
|
||||
|
||||
add_llvm_example(Kaleidoscope-Ch8
|
||||
add_kaleidoscope_chapter(Kaleidoscope-Ch8
|
||||
toy.cpp
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user