[PATCH] D24083: [CMake] Fix libc++abi __aeabi_idiv() link error.
Renato Golin via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 4 05:39:51 PDT 2016
rengolin added a comment.
In https://reviews.llvm.org/D24083#534464, @EricWF wrote:
> In https://reviews.llvm.org/D24083#534459, @logan wrote:
>
> > One solution might be adding the `libclang_rt.builtins.${arch}.a` detection rules[1] to CMakeLists.txt, and manually specify `-lclang_rt.builtins-${arch}.a` when `LIBCXXABI_USE_COMPILER_RT` is enabled. How do you think about this solution?
>
>
> That SGTM. There's a similar workaround in libc++ to link the sanitizer run-times on OS X (found here <https://github.com/llvm-mirror/libcxx/blob/master/lib/CMakeLists.txt#L40>).
+1
https://reviews.llvm.org/D24083
More information about the cfe-commits
mailing list