musllvm

A pure LLVM/Clang cross compiler toolchain targeting musl C
git clone git://git.daat.foo/musllvm.git
Log | Files | Refs | README | LICENSE

commit e12419d686faaf1a7daca96245b5f3b1abd477a0
parent 00915846b7cb76589c5599c545cb3585b0464ec0
Author: cowmonk <cowmonk@based.pt>
Date:   Sat, 15 Nov 2025 01:18:52 -0700

fixing few errors in build with headers and musl

Diffstat:
Mscripts/headers.sh | 3+--
Mscripts/musl.sh | 2+-
2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/scripts/headers.sh b/scripts/headers.sh @@ -15,7 +15,7 @@ if command -v "clang" >/dev/null 2>&1 && command -v "lld" >/dev/null 2>&1; then export LLVM_IAS=1 fi -if [ -z ./build/"$LINUX_SOURCE" ]; then +if [ ! -d ./build/"$LINUX_SOURCE" ]; then echo "Extracting Linux tarball to ./build/" tar -xpf ./sources/"$LINUX_TAR" -C ./build else @@ -37,7 +37,6 @@ make mrproper make headers find usr/include -type f ! -name '*.h' -delete cp -rv usr/include/* ../"$FROOT"/include/ -rm -v ../"$FROOT"/include/Makefile exit diff --git a/scripts/musl.sh b/scripts/musl.sh @@ -2,7 +2,7 @@ set -eu ARCH=$(uname -m) -FROOT="$ARCH-musllvm" +FROOT="./build/$ARCH-musllvm" MUSL_TAR=$(ls ./sources/musl-*.tar.* 2>/dev/null | head -n 1 | xargs basename) if [ -z "$MUSL_TAR" ]; then echo "ERR: No Musl tarball found in sources directory"