nikic wrote: Also have to declare LLVM_POLLY_LINK_INTO_TOOLS earlier, because we use it before llvm_add_pass_plugin is called. Didn't notice this during testing because I was passing it explicitly... https://github.com/llvm/llvm-project/pull/122123