================ @@ -0,0 +1,21 @@ +# Do NOT set LLVM_LINK_COMPONENTS here. Setting it would cause LLVM libraries +# (e.g. Support) to be linked statically into this MODULE, producing a second +# copy of LLVM in the process alongside the copy already loaded by the host +# tool. Two copies means two separate llvm::Registry instances, so +# registrations made here would not be visible to the host tool. +# +# The same applies to clang static libraries: do not use +# clang_target_link_libraries here. Instead, expose only their include paths ---------------- steakhal wrote:
Everybody only reads the first 1-2 lines of a comment. We should bundle the `DO NOT` lines together at the top and elaborate later. https://github.com/llvm/llvm-project/pull/187403 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
