set(LLVM_LINK_COMPONENTS X86AsmParser X86CodeGen ) add_llvm_executable(spanify Spanifier.cpp ../raw_ptr_plugin/Util.cpp ../raw_ptr_plugin/RawPtrHelpers.cpp ../raw_ptr_plugin/StackAllocatedChecker.cpp ) target_compile_features(spanify PUBLIC cxx_std_20) target_link_libraries(spanify clangASTMatchers clangTooling ) cr_install(TARGETS spanify RUNTIME DESTINATION bin) target_include_directories(spanify PUBLIC "../raw_ptr_plugin")