jeremyd2019 wrote: also, `llvm-config --cppflags` contains it Perhaps it needs to explicitly add `LLVM_DEFINITONS` to `add_definitions` and `CMAKE_REQUIRED_DEFINITIONS`? https://github.com/llvm/llvm-project/pull/138329