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