4 ms·
I've been digging musl + clang too. Here's my wrapper script that I use to compile a number of projects: https://github.com/esjeon/musl-clang https://github.com
by esjeon 11y ago
I've been digging musl + clang too. Here's my wrapper script that I use to compile a number of projects: https://github.com/esjeon/musl-clang https://github.com/esjeon/musl-clang
This isn't perfect, but kinda works (even with autoconf). I also tried to add musl support into LLVM/clang, but I've been too busy recently, and won't be able to work on it for a while.
A side note: Clang is such a beauty whose structure is so easy to understand yet very extendible. There are actually few things to be done on clang to support musl. Just implement a proper frontend, and you're mostly done. But it's kinda difficult to patch codes which assume glibc, and the fact that musl refuses to export __MUSL__ macro makes the job even harder.