blob: 563b8cc848f6ed4da9a444a6b9347162405040ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
set(LLVM_LINK_COMPONENTS
Support
)
add_kaleidoscope_chapter(Kaleidoscope-Ch2
toy.cpp
)
if(LLVM_COMPILER_IS_GCC_COMPATIBLE)
target_compile_options(Kaleidoscope-Ch2 PRIVATE
-Wno-unused-private-field
)
endif()
if(MSVC)
# ignore "warning LNK4199: /DELAYLOAD:shell32.dll ignored; no imports found from shell32.dll"
target_link_libraries(Kaleidoscope-Ch2 PRIVATE "-ignore:4199")
endif()
|