================
@@ -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:

Is it intentional that the standalone builds have a different default (OFF vs. 
ON)? The comment says "we don't inherit [...], so set it here", but then - 
perhaps naïvely - I'd have expected the same value as in 
`llvm/CMakeLists.txt`...

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