================ @@ -12,8 +12,13 @@ set(CLANG_INCLUDE_DIRS "@CLANG_CONFIG_INCLUDE_DIRS@") set(CLANG_LINK_CLANG_DYLIB "@CLANG_LINK_CLANG_DYLIB@") set(CLANG_DEFAULT_LINKER "@CLANG_DEFAULT_LINKER@") -# Provide all our library targets to users. -@CLANG_CONFIG_INCLUDE_EXPORTS@ +# Provide all our library targets to users. Skip when +# LLVM_OMIT_EXPORTS_FROM_CONFIG flag is set. Runtimes build do not need these. +# These exports may contain shared libraries and they are causing cmake errors +# when the target platform is baremetal, which lack shared library support. ---------------- petrhosek wrote:
```suggestion # Provide all our library targets to users. Skip when # LLVM_OMIT_EXPORTS_FROM_CONFIG flag is set. Runtimes build do not need these. # These exports may contain shared libraries which trigger to an import error # when the target platform lacks shared library support. ``` https://github.com/llvm/llvm-project/pull/210496 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
