[PATCH] D68430: Don't use object libraries with Xcode
Jordan Rose via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 4 10:33:46 PDT 2019
jordan_rose added a comment.
In D68430#1693965 <https://reviews.llvm.org/D68430#1693965>, @beanz wrote:
> clang_cpp can't link the libraries "normally" because it has no unresolved symbols to force the contents of the libraries to link. I don't like it, but I think the best option is to disable clang_cpp under Xcode. You can add `AND XCODE` to the `if` on line 2 of clang/tools/clang-shlib/CMakeLists.txt, and that should do the trick.
I do think it's okay to just not support that target for Xcode, but another option would be to add `-all_load` to the linker line, the ld64 option that just unconditionally includes all archives. What do you think?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D68430/new/
https://reviews.llvm.org/D68430
More information about the cfe-commits
mailing list