1DOLLY 72PACKAGE llvm213REQUIRES HOST runtime@045# LLVM 21 with every default target, Clang and LLD as libraries and headers,6# and llvm-config, under /usr/lib/llvm21: what Zig 0.16 links. Built by its7# CMake inside Dolly with the TableGen tools of llvm21-tablegen.8FROM /v0.1.4/demos/llvm/Dollyfile-llvm21-tablegen b1b229aef4de99844994526c6ee147b23aecfc32bd4c032f23414f8ff53fe4a09REQUIRES TOOL llvm-tblgen10REQUIRES TOOL clang-tblgen11REQUIRES TOOL cmake12REQUIRES TOOL make13REQUIRES TOOL python14REQUIRES TOOL time15REQUIRES TOOL rm16REQUIRES TOOL gzip17REQUIRES TOOL tar18REQUIRES TOOL patch1920SOURCE /v0.1.4/dist/static/llvm21/llvm-project.tar.gz 3042fa04776a40e02e800b71105d7c8199b9c5dd7b951a715d0edd208238daed /tmp/llvm-project.tar.gz21SLOP time slop -c 'gzip -dc /tmp/llvm-project.tar.gz | tar -xf - -C /'22SLOP rm /tmp/llvm-project.tar.gz23SOURCE /v0.1.4/dist/static/llvm21/llvm-host-triple.patch ec739fd5932c1040d07344a8511bae4da4157ff2bcafa348f06a555b71a10981 /tmp/llvm-host-triple.patch24SLOP patch -p1 -d /tmp/llvm-project -i /tmp/llvm-host-triple.patch25# Upstream's a558d656 from LLVM 22: LLVM 21's RDF gives std::less state, which26# this libc++ (LLVM 24's) refuses.27SOURCE /v0.1.4/dist/static/llvm21/llvm21-std-specializations.patch 7ca034008e6a5d4d95d305f883eb82b9107be62e294d7f14532327ad88022695 /tmp/llvm21-std-specializations.patch28SLOP patch -p1 -d /tmp/llvm-project -i /tmp/llvm21-std-specializations.patch29# Licences of the three projects whose libraries this package holds.30SOURCE /v0.1.4/dist/static/llvm21/licenses/llvm 8d85c1057d742e597985c7d4e6320b015a9139385cff4cbae06ffc0ebe89afee /usr/share/licenses/llvm21/llvm/LICENSE.TXT31SOURCE /v0.1.4/dist/static/llvm21/licenses/clang ebcd9bbf783a73d05c53ba4d586b8d5813dcdf3bbec50265860ccc885e606f47 /usr/share/licenses/llvm21/clang/LICENSE.TXT32SOURCE /v0.1.4/dist/static/llvm21/licenses/lld f7891568956e34643eb6a0db1462db30820d40d7266e2a78063f2fe233ece5a0 /usr/share/licenses/llvm21/lld/LICENSE.TXT33FOLDER /usr/share/licenses/llvm213435# The TableGen tools llvm21-tablegen built run again here: a snapshot keeps no36# file times, so its Make tree cannot continue.37FILE /usr/lib/llvm21-build/tools.cmake38    include(/usr/lib/llvm21-build/Dolly.cmake)39    set(LLVM_TABLEGEN /usr/bin/llvm-tblgen CACHE STRING "")40    set(CLANG_TABLEGEN /usr/bin/clang-tblgen CACHE STRING "")41    # No shared libraries: they link with version scripts, which Dolly's42    # wasm-ld has not. (Without PIC, LLVM links its programs with -fno-pie.)43    foreach(tool LLVM_TOOL_LTO LLVM_TOOL_REMARKS_SHLIB CLANG_TOOL_LIBCLANG CLANG_TOOL_CLANG_SHLIB)44      set(${tool}_BUILD OFF CACHE BOOL "")45    endforeach()46SLOP time cmake -C /usr/lib/llvm21-build/tools.cmake -S /tmp/llvm-project/llvm -B /tmp/llvm-build47# -k reports every failing unit of a long build, not only the first.48SLOP CWD /tmp/llvm-build time make -k -j4 install-llvm-libraries install-llvm-headers install-llvm-config \49  install-clang-libraries install-clang-headers install-lld-headers install-lldCommon install-lldELF install-lldCOFF install-lldMachO install-lldMinGW install-lldWasm50SLOP rm -rf /tmp/llvm-build /tmp/llvm-project5152EXPORTS FOLDER llvm21 /usr/lib/llvm2153SLOP /usr/lib/llvm21/bin/llvm-config --version --targets-built54