Skip to content

Commit

Permalink
compiler-rt: initial import
Browse files Browse the repository at this point in the history
  • Loading branch information
pitill0 committed Nov 16, 2023
1 parent 5a6df15 commit 3f0a870
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 0 deletions.
31 changes: 31 additions & 0 deletions compiler-rt/.footprint
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/lib/
drwxr-xr-x root/root usr/lib/clang/
drwxr-xr-x root/root usr/lib/clang/17/
drwxr-xr-x root/root usr/lib/clang/17/include/
drwxr-xr-x root/root usr/lib/clang/17/include/fuzzer/
-rw-r--r-- root/root usr/lib/clang/17/include/fuzzer/FuzzedDataProvider.h
drwxr-xr-x root/root usr/lib/clang/17/include/orc/
-rw-r--r-- root/root usr/lib/clang/17/include/orc/c_api.h
drwxr-xr-x root/root usr/lib/clang/17/include/profile/
-rw-r--r-- root/root usr/lib/clang/17/include/profile/InstrProfData.inc
drwxr-xr-x root/root usr/lib/clang/17/include/sanitizer/
-rw-r--r-- root/root usr/lib/clang/17/include/sanitizer/allocator_interface.h
-rw-r--r-- root/root usr/lib/clang/17/include/sanitizer/asan_interface.h
-rw-r--r-- root/root usr/lib/clang/17/include/sanitizer/common_interface_defs.h
-rw-r--r-- root/root usr/lib/clang/17/include/sanitizer/coverage_interface.h
-rw-r--r-- root/root usr/lib/clang/17/include/sanitizer/dfsan_interface.h
-rw-r--r-- root/root usr/lib/clang/17/include/sanitizer/hwasan_interface.h
-rw-r--r-- root/root usr/lib/clang/17/include/sanitizer/linux_syscall_hooks.h
-rw-r--r-- root/root usr/lib/clang/17/include/sanitizer/lsan_interface.h
-rw-r--r-- root/root usr/lib/clang/17/include/sanitizer/memprof_interface.h
-rw-r--r-- root/root usr/lib/clang/17/include/sanitizer/msan_interface.h
-rw-r--r-- root/root usr/lib/clang/17/include/sanitizer/netbsd_syscall_hooks.h
-rw-r--r-- root/root usr/lib/clang/17/include/sanitizer/scudo_interface.h
-rw-r--r-- root/root usr/lib/clang/17/include/sanitizer/tsan_interface.h
-rw-r--r-- root/root usr/lib/clang/17/include/sanitizer/tsan_interface_atomic.h
-rw-r--r-- root/root usr/lib/clang/17/include/sanitizer/ubsan_interface.h
drwxr-xr-x root/root usr/lib/clang/17/include/xray/
-rw-r--r-- root/root usr/lib/clang/17/include/xray/xray_interface.h
-rw-r--r-- root/root usr/lib/clang/17/include/xray/xray_log_interface.h
-rw-r--r-- root/root usr/lib/clang/17/include/xray/xray_records.h
7 changes: 7 additions & 0 deletions compiler-rt/.signature
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
untrusted comment: verify with /etc/ports/opt-arm.pub
RWQh9Dk2FlLauPA/gTWTTTx/99y/iPYXj5OCrkmTTuZUS/mGI6WHbRnCjwZNcHFP52xa9EJbvGP/TTAA4OeCXnmdMDNacVGMzQs=
SHA256 (Pkgfile) = 787037e2b21b67f834205574cfad63d2567fbda1991fc0824e9499e5e012542c
SHA256 (.footprint) = 37f949de0f74b17de9a4cd9af6e785622952c8cef41e5126dbcf8149c70c6bbd
SHA256 (compiler-rt-17.0.5.src.tar.xz) = 4e3b4a05780baf04a11e80efbe5039ff3ef17af617233f326f073e7af2cdab89
SHA256 (llvm-17.0.5.src.tar.xz) = 569526fd017478eee51518a79c064442c0499269c6a6de586e409d91282afd04
SHA256 (cmake-17.0.5.src.tar.xz) = 734ea7767ebda642d22c878024c9fb14ae0521d048bdba54e463bb73260adaef
27 changes: 27 additions & 0 deletions compiler-rt/Pkgfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Description: Compiler runtime libraries for clang
# URL: https://compiler-rt.llvm.org/
# Maintainer: CRUX System Team, core-ports at crux dot nu
# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
# Depends on: llvm

name=compiler-rt
version=17.0.5
release=1
source=(https://github.com/llvm/llvm-project/releases/download/llvmorg-$version/compiler-rt-$version.src.tar.xz
https://github.com/llvm/llvm-project/releases/download/llvmorg-$version/llvm-$version.src.tar.xz
https://github.com/llvm/llvm-project/releases/download/llvmorg-$version/cmake-$version.src.tar.xz)

build() {
mv llvm-$version.src llvm
mv cmake-$version.src cmake

cmake -S $name-$version.src -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
-D COMPILER_RT_INSTALL_PATH=/usr/lib/clang/${version:0:2} \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
}

0 comments on commit 3f0a870

Please sign in to comment.