-add_llvm_example(Kaleidoscope-Ch4
+set(LLVM_LINK_COMPONENTS
+ Analysis
+ Core
+ ExecutionEngine
+ InstCombine
+ Object
+ RuntimeDyld
+ ScalarOpts
+ Support
+ native
+ )
+
+add_kaleidoscope_chapter(Kaleidoscope-Ch4
toy.cpp
)
-add_llvm_link_components(Kaleidoscope-Ch4 jit interpreter native)
-target_link_libraries(Kaleidoscope-Ch4 LLVMCore)
+export_executable_symbols(Kaleidoscope-Ch4)