[clang] [llvm] Enable ClangIR Build By Default (PR #221291)

via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 22 15:32:14 PDT 2026


================
@@ -190,6 +190,12 @@ if(CLANG_ENABLE_LIBXML2)
   endif()
 endif()
 
+# Standalone builds don't inherit this flag from the llvm/CMakeLists, so set it
+# here.
+if(CLANG_BUILT_STANDALONE)
+  option(CLANG_ENABLE_CIR "Build ClangIR support into the compiler" OFF)
+endif()
----------------
h-vetinari wrote:

Thanks for the quick responses. I'll give it a shot to build our (standalone) clang with CIR enabled. I can raise an issue if I run into problems.

https://github.com/llvm/llvm-project/pull/221291


More information about the cfe-commits mailing list