[clang] [compiler-rt] [llvm] Skipping host target exports during cross-compilation (PR #209922)

Petr Hosek via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 16 18:02:51 PDT 2026


================
@@ -1017,6 +1017,8 @@ if (CMAKE_BUILD_TYPE AND uppercase_CMAKE_BUILD_TYPE MATCHES "^(RELWITHDEBINFO|DE
   set(LLVM_OMIT_DAGISEL_COMMENTS OFF)
 endif()
 
+option(LLVM_OMIT_HOST_TARGETS_IN_CROSSCOMPILING "Do not import LLVM and Clang host targets when cross compiling in sub builds" OFF)
----------------
petrhosek wrote:

Do we need to tie this to cross-compilation? We could name this just `LLVM_OMIT_EXPORTS_FROM_CONFIG` as a generic feature.

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


More information about the cfe-commits mailing list