[PATCH] D24083: [CMake] Fix libc++abi __aeabi_idiv() link error.

Eric Fiselier via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 6 04:23:28 PDT 2016

EricWF added a comment.

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>).


More information about the cfe-commits mailing list