mirror of
https://codeberg.org/kiss-community/repo
synced 2024-10-02 06:21:10 -06:00
llvm [testing]: 16.0.3
This commit is contained in:
parent
5bb9de03ae
commit
9248599ef5
43
testing/llvm/README
Normal file
43
testing/llvm/README
Normal file
@ -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
|
||||||
|
|
47
testing/llvm/build
Executable file
47
testing/llvm/build
Executable file
@ -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" <<EOF
|
||||||
|
prefix=/usr
|
||||||
|
exec_prefix=\${prefix}
|
||||||
|
libdir=\${exec_prefix}/lib
|
||||||
|
includedir=\${prefix}/include
|
||||||
|
has_rtti=$(llvm-config --has-rtti)
|
||||||
|
|
||||||
|
Name: LLVM
|
||||||
|
Description: LLVM compiler infrastructure
|
||||||
|
URL: https://llvm.org
|
||||||
|
Version: $(llvm-config --version)
|
||||||
|
Requires:
|
||||||
|
Requires.private: zlib
|
||||||
|
Libs: -L\${libdir} $(llvm-config --libs)
|
||||||
|
Libs.private: -lstdc++ $(llvm-config --libs --link-static)
|
||||||
|
Cflags: $(llvm-config --cflags)
|
||||||
|
EOF
|
2
testing/llvm/checksums
Normal file
2
testing/llvm/checksums
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
e1de8caff32de7c4edd4f8ca2588b3d4fdcca4937c241fe82b772f2b838f0156a1
|
||||||
|
40a6c658591f26fe23ad5e5b3e6645eea2476e31b9adbcce139949ee17f17b1dea
|
3
testing/llvm/depends
Normal file
3
testing/llvm/depends
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
cmake make
|
||||||
|
python make
|
||||||
|
zlib
|
2
testing/llvm/sources
Normal file
2
testing/llvm/sources
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
https://github.com/llvm/llvm-project/releases/download/llvmorg-16.0.3/llvm-16.0.3.src.tar.xz llvm
|
||||||
|
https://github.com/llvm/llvm-project/releases/download/llvmorg-16.0.3/cmake-16.0.3.src.tar.xz cmake
|
1
testing/llvm/version
Normal file
1
testing/llvm/version
Normal file
@ -0,0 +1 @@
|
|||||||
|
15.0.7 1
|
Loading…
Reference in New Issue
Block a user