[libcxx-dev] libcxxabi cross compile, config-ix.cmake, failed checks

Joel Winarske via libcxx-dev libcxx-dev at lists.llvm.org
Fri Dec 21 15:39:50 PST 2018

I'm seeing a problem cross compiling libcxxabi to ARM using a tip of the
tree LLVM/Clang build.

In config-ix.cmake, I'm seeing oddness with this line:

If enabled, it will cause all subsequent compile flag checks to fail.
Including ones known to be supported, such as -nostdinc++.

As a data point if I ignore the failed checks, and add these two lines, the
build goes through.  So -nostdinc++ clearly works.
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -nostdinc++")

If I disable the line, all the checks work as expected, but the build fails
related to undefined arm unwind references.

I'm currently on Bionic and CMake 3.12.4, and I'm invoking the build like

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/libcxx-dev/attachments/20181221/dae266c0/attachment.html>

More information about the libcxx-dev mailing list