From 739c65c54cb0e957df5e9b76f93fb02554e5cac3 Mon Sep 17 00:00:00 2001 From: davidovski Date: Wed, 4 May 2022 23:52:30 +0100 Subject: moved everything to new file formatting --- repo/devel/compiler-rt/compiler-rt.xibuild | 38 ++++++++++++++++++++++++++++++ repo/devel/compiler-rt/link-execinfo.patch | 11 +++++++++ 2 files changed, 49 insertions(+) create mode 100644 repo/devel/compiler-rt/compiler-rt.xibuild create mode 100644 repo/devel/compiler-rt/link-execinfo.patch (limited to 'repo/devel/compiler-rt') diff --git a/repo/devel/compiler-rt/compiler-rt.xibuild b/repo/devel/compiler-rt/compiler-rt.xibuild new file mode 100644 index 0000000..abff3dc --- /dev/null +++ b/repo/devel/compiler-rt/compiler-rt.xibuild @@ -0,0 +1,38 @@ +#!/bin/sh + +NAME="compiler-rt" +DESC="LLVM compiler-rt runtime libraries" + +MAKEDEPS="cmake libexecinfo" +DEPS="musl " + +PKG_VER=13.0.0 +SOURCE="https://github.com/llvm/llvm-project/releases/download/llvmorg-$PKG_VER/compiler-rt-$PKG_VER.src.tar.xz" +ADDITIONAL="link-execinfo.patch " + +prepare () { + apply_patches +} + +build () { + cmake -B build \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=/usr/lib \ + -DBUILD_SHARED_LIBS=True \ + -DBUILD_STATIC_LIBS=OFF \ + -DCMAKE_C_COMPILER=clang \ + -DCMAKE_CXX_COMPILER=clang++ \ + -DCMAKE_BUILD_TYPE=MinSizeRel \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCOMPILER_RT_INCLUDE_TESTS=OFF \ + -DCOMPILER_RT_BUILD_SANITIZERS=ON \ + -DCOMPILER_RT_BUILD_XRAY=ON \ + -DCOMPILER_RT_INSTALL_PATH="/usr/lib/clang/$PKG_VER" \ + -DLLVM_EXTERNAL_LIT="/usr/bin/lit" \ + + cmake --build build +} + +package () { + DESTDIR="$PKG_DEST" cmake --install build +} diff --git a/repo/devel/compiler-rt/link-execinfo.patch b/repo/devel/compiler-rt/link-execinfo.patch new file mode 100644 index 0000000..8da49fb --- /dev/null +++ b/repo/devel/compiler-rt/link-execinfo.patch @@ -0,0 +1,11 @@ +--- a/lib/scudo/standalone/CMakeLists.txt ++++ b/lib/scudo/standalone/CMakeLists.txt +@@ -137,6 +137,8 @@ + + append_list_if(FUCHSIA zircon SCUDO_LINK_LIBS) + ++list(APPEND SCUDO_LINK_LIBS execinfo) ++ + if(COMPILER_RT_HAS_SCUDO_STANDALONE) + add_compiler_rt_object_libraries(RTScudoStandalone + ARCHS ${SCUDO_STANDALONE_SUPPORTED_ARCH} -- cgit v1.2.1