================
@@ -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()
----------------
joker-eph wrote:

If MLIR is enabled, nothing is done "custom". The "custom" part is to include 
just the minimum set of MLIR needed by clang when MLIR is disabled and link it 
directly into clang.

This is basically the difference between `-DLLVM_ENABLE_PROJECTS=clang` vs 
`-DLLVM_ENABLE_PROJECTS=clang;mlir`

https://github.com/llvm/llvm-project/pull/221291
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to