[libc-commits] [PATCH] D124214: [libc][NOT FOR COMMIT] building LLVM-libc on 32 bit arm with gcc

Peter Smith via Phabricator via libc-commits libc-commits at lists.llvm.org
Thu Apr 28 09:05:28 PDT 2022


peter.smith added a comment.

FWIW I was able to get at least the ninja llvmlibc working with the LLVM embedded toolchain with the following hacky bit of cmake

  cmake ../../llvm -G Ninja -DLLVM_ENABLE_PROJECTS="libc" \
        -DCMAKE_TRY_COMPILE_TARGET_TYPE=STATIC_LIBRARY \
        -DCMAKE_BUILD_TYPE=Release \
        -DCMAKE_C_COMPILER=clang \
        -DCMAKE_CXX_COMPILER=clang++ \
        -DLLVM_LIBC_FULL_BUILD=OFF \
        -DCMAKE_C_COMPILER_TARGET=armv7-m-none-eabi \
        -DCMAKE_CXX_COMPILER_TARGET=armv7-m-none-eabi \
        -DCMAKE_C_FLAGS="--config armv7m_soft_nofp_rdimon_baremetal"\
        -DCMAKE_CXX_FLAGS="--config armv7m_soft_nofp_rdimon_baremetal"\
        -DCMAKE_AR=llvm-ar \
        -DLLVM_LIBC_ENABLE_LINTING=OFF -DLLVM_LIBC_INCLUDE_SCUDO=OFF \
        -DLLVM_DEFAULT_TARGET_TRIPLE="armv7-m-none-eabi" \
        -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_PROCESSOR=arm \
        -DLLVM_INCLUDE_BENCHMARKS=OFF


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D124214/new/

https://reviews.llvm.org/D124214



More information about the libc-commits mailing list