musllvm

musl and LLVM cross-toolchain build system
git clone https://git.daat.foo/musllvm.git
Log | Files | Refs | README | LICENSE

README.md (1401B)


      1 patches
      2 =======
      3 
      4 These patches come from Chimera Linux's [cports tree](https://github.com/chimera-linux/cports/tree/8c138d9ee1cebf0f16d32b56193044c20a46a5f4/main)
      5 at 8c138d9ee1cebf0f16d32b56193044c20a46a5f4, checked on 2026-10-19.
      6 The build applies each component's .patch files in filename order.
      7 
      8 llvm
      9 ====
     10 
     11 For LLVM 23.1.3:
     12 
     13 * 0001 gives LLVM worker threads an 8 MiB stack, including on musl hosts.
     14   Its context was updated for LLVM 23; the change matches Chimera's patch.
     15 * 0002 removes musl's large file macros before LLVM declares matching names.
     16 * 0011 builds the C exception personality with LLVM's unwind headers during
     17   the compiler-rt bootstrap. The builtins configuration adds libunwind's
     18   source include directory so unwind.h can find its nested headers.
     19 
     20 The Clang configuration and CMake settings cover Chimera's hardening,
     21 libatomic, library layout and typeinfo defaults. The build also uses
     22 Chimera's fast libc++ hardening mode and disables outline atomics when
     23 building libatomic for aarch64.
     24 
     25 musl
     26 ====
     27 
     28 For musl 1.2.6:
     29 
     30 * 001 through 008 are upstream fixes carried by Chimera for DNS, strptime,
     31   regular expressions, GB18030 conversion, iswalnum and qsort.
     32 * nxthdr.patch fixes signedness and alignment warnings in CMSG_NXTHDR.
     33 
     34 The toolchain keeps musl's stock allocator. Chimera's allocator integration,
     35 PowerPC changes and LLVM sanitizer patches do not apply to this build.