llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
26.98k stars 11.05k forks source link

[libc][arm] implement startup for full build #96326

Open nickdesaulniers opened 3 weeks ago

nickdesaulniers commented 3 weeks ago

I would like to be able to cross compile llvm-libc for 32b ARM via:

$ cmake ../runtimes -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -G Ninja -DLLVM_ENABLE_LLD=ON -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_RUNTIMES="libc" -DLLVM_LIBC_FULL_BUILD=ON -DLIBC_HDRGEN_EXE=$HDRGEN -DLIBC_TARGET_TRIPLE=armv7-linux-gnueabihf

I'm working on fixing up the configuration so I can configure such a build, but then there are also numerous build issues once the configuration issues are sorted out. Once we can configure and build, then we should implement the startup code correctly for this platform.

llvmbot commented 3 weeks ago

@llvm/issue-subscribers-libc

Author: Nick Desaulniers (paternity leave) (nickdesaulniers)

I would like to be able to cross compile llvm-libc for 32b ARM via: ``` $ cmake ../runtimes -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -G Ninja -DLLVM_ENABLE_LLD=ON -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_RUNTIMES="libc" -DLLVM_LIBC_FULL_BUILD=ON -DLIBC_HDRGEN_EXE=$HDRGEN -DLIBC_TARGET_TRIPLE=armv7-linux-gnueabihf ``` I'm working on fixing up the configuration so I can configure such a build, but then there are also numerous build issues once the configuration issues are sorted out. Once we can configure and build, then we should implement the startup code correctly for this platform.