From 9248599ef5ae38a21633ae774e67b42307889afe Mon Sep 17 00:00:00 2001 From: Owen Rafferty Date: Sun, 14 May 2023 17:36:54 -0500 Subject: [PATCH] llvm [testing]: 16.0.3 --- testing/llvm/README | 43 ++++++++++++++++++++++++++++++++++++++ testing/llvm/build | 47 ++++++++++++++++++++++++++++++++++++++++++ testing/llvm/checksums | 2 ++ testing/llvm/depends | 3 +++ testing/llvm/sources | 2 ++ testing/llvm/version | 1 + 6 files changed, 98 insertions(+) create mode 100644 testing/llvm/README create mode 100755 testing/llvm/build create mode 100644 testing/llvm/checksums create mode 100644 testing/llvm/depends create mode 100644 testing/llvm/sources create mode 100644 testing/llvm/version diff --git a/testing/llvm/README b/testing/llvm/README new file mode 100644 index 00000000..ce18103e --- /dev/null +++ b/testing/llvm/README @@ -0,0 +1,43 @@ +llvm +________________________________________________________________________________ + +LLVM is a set of compiler and toolchain technologies, which can be used to +develop a front end for any programming language and a back end for any +instruction set architecture. LLVM is designed around a language-independent +intermediate representation (IR) that serves as a portable, high-level assembly +language that can be optimized with a variety of transformations over multiple +passes. [0] + +Upstream: https://llvm.org/ + + +[000] Index +________________________________________________________________________________ + +* Installation ........................................................... [001] +* Usage .................................................................. [002] +* References ............................................................. [003] + + +[001] Installation +________________________________________________________________________________ + ++------------------------------------------------------------------------------+ +| | +| $ kiss b llvm | +| | ++------------------------------------------------------------------------------+ + + +[002] Usage +________________________________________________________________________________ + +Refer to the command help output. No manuals are (yet) provided with alongside +this package. + + +[003] References +________________________________________________________________________________ + +[0] https://en.wikipedia.org/wiki/LLVM + diff --git a/testing/llvm/build b/testing/llvm/build new file mode 100755 index 00000000..6bee4a51 --- /dev/null +++ b/testing/llvm/build @@ -0,0 +1,47 @@ +#!/bin/sh -e + +export DESTDIR="$1" + +cd llvm +cmake -B build \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLLVM_BUILD_LLVM_DYLIB=ON \ + -DLLVM_LINK_LLVM_DYLIB=ON \ + -DLLVM_TARGETS_TO_BUILD="host;AMDGPU" \ + -DLLVM_ENABLE_RTTI=ON \ + -DLLVM_HOST_TRIPLE="$(cc -dumpmachine)" \ + -DLLVM_INCLUDE_BENCHMARKS=OFF \ + -DLLVM_INCLUDE_EXAMPLES=OFF \ + -DLLVM_INCLUDE_DOCS=OFF \ + -DLLVM_INCLUDE_TESTS=OFF \ + -DLLVM_ENABLE_TERMINFO=OFF \ + -DLLVM_ENABLE_LIBXML2=OFF \ + -Wno-dev + +cmake --build build +cmake --install build + +# Use new llvm-config to generate a pkg-config file. +PATH="$1/usr/bin:$PATH" +mkdir -p "$1/usr/lib/pkgconfig" + +# shellcheck disable=2016 +sed -e "s|$1||" -e 's|/usr/include|\${includedir}|' \ + > "$1/usr/lib/pkgconfig/llvm.pc" <