Commit 5bd2eed3 authored by jan.koester's avatar jan.koester
Browse files

test

parent 651b9998
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -139,6 +139,15 @@ setup_toolchain() {
        make -j\$(nproc)
        make install

        # Install Linux kernel headers into musl sysroot
        cd /tmp
        KERNEL_VERSION=\$(apt-cache show linux-headers-amd64 2>/dev/null | grep Depends | head -1 | grep -oP '[0-9]+\.[0-9]+' | head -1 || echo '6.1')
        apt-get install -y --no-install-recommends linux-libc-dev
        cp -a /usr/include/linux /usr/local/musl/include/
        cp -a /usr/include/asm-generic /usr/local/musl/include/
        cp -a /usr/include/x86_64-linux-gnu/asm /usr/local/musl/include/ 2>/dev/null || \
            cp -a /usr/include/asm /usr/local/musl/include/

        # Build libc++, libc++abi and libunwind against musl from LLVM source
        # LLVM 18 requires the unified runtimes build
        cd /tmp