This patch is only for demonstration purposes and is not intended to be
landed. It contains the changes needed to allow LLVM-libc to be built
with prebuilt GCC for ARM.
To build LLVM-libc with this configuration, use the following command:
cmake ../llvm -G Ninja -DLLVM_ENABLE_PROJECTS="libc"
-DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=arm-none-eabi-gcc
-DCMAKE_CXX_COMPILER=arm-none-eabi-g++ -DLLVM_LIBC_FULL_BUILD=OFF
-DLLVM_LIBC_ENABLE_LINTING=OFF -DLLVM_LIBC_INCLUDE_SCUDO=OFF
-DCMAKE_C_FLAGS="-specs=nosys.specs"
-DCMAKE_CXX_FLAGS="-specs=nosys.specs -Wno-psabi"
-DLLVM_DEFAULT_TARGET_TRIPLE=arm-unknown-linux-eabi
-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_PROCESSOR=arm
-DLLVM_INCLUDE_BENCHMARKS=OFF
Which gcc version is this?