What I'm trying to achieve is to compile an GNU independent and isolated LLVM toolchain using musl as clib
.
Recently LLVM 4.0 has been released with lot's of new cool features, including production ready LLD, so also the linking step could be handled by LLVM.
More or less the stack is:
- clang
- llvm
- lld
- compiler-rt
- libcxx
- libcxxabi
- musl
Following this, it is actually possible to do so without much patching or such (apart from compiling musl
), but sadly, there is no good documentation about that.
Any suggestions?