Displaying 2 results from an estimated 2 matches for "dcmake_sysroot".
Did you mean:
cmake_sysroot
2019 Aug 07
2
Compiling compiler-rt for baremetal CortexM on Ubuntu Linux
Hello,
I want to build LLVM/Compiler-rt for baremetal targets like Cortex-M3. By
adopting CMake options from
http://llvm.1065342.n5.nabble.com/llvm-dev-Compiling-for-baremetal-ARMv4-on-Ubuntu-Linux-tp124226p124500.html,
I can only build "libclang_rt.builtins-x86_64.a" in lib/linux, but what I
want to build is "libclang_rt.builtins.arm.a".
My CMake options are:
cmake -G Ninja
2017 Oct 31
3
Cross compiling for Baremetal ARM without using GCC
...LLVM_DEFAULT_TARGET_TRIPLE=arm-none-eabi \
-DLLVM_TARGET_ARCH=ARM \
-DLLVM_TARGETS_TO_BUILD=ARM \
-DLLVM_ENABLE_LTO=Full \
-DCMAKE_C_FLAGS="${MYCFLAGS}" \
-DCMAKE_CXX_FLAGS="${MYCFLAGS}" \
-DCMAKE_SYSROOT=${MYGNUARM_ROOT} \
-DCMAKE_TOOLCHAIN_FILE=../toolchain.txt \
-DCMAKE_C_COMPILER=${MYGNUARM_ROOT}/bin/arm-none-eabi-gcc \
-DCMAKE_CXX_COMPILER=${MYGNUARM_ROOT}/bin/arm-none-eabi-g++ \
-DCMAKE_ASM_COMPILER=${MYGNUARM_ROOT}/bin/arm-none-eabi-...