michaelrj-google wrote: I would guess that the debug macro is being set based on the cmake flag `-DCMAKE_BUILD_TYPE=Debug`, and we might want to respect that in our build. Other than that this looks fine to me. https://github.com/llvm/llvm-project/pull/77810