inherit clang cmake NAME="compiler-rt" VERSION=20.1.2 RELEASE=1 LICENSE="Apache-2.0 WITH uLVM-exception" CATEGORY="Devel" SUMMARY="Compiler runtime library for Clang" DESCRIPTION="The compiler-rt provides a simple library that provides an implementation of the low-level target-specific hooks required by code generation and other runtime components." HOMEPAGE="http://compiler-rt.llvm.org/" SRC_URI=" https://github.com/llvm/llvm-project/releases/download/llvmorg-${VERSION}/${NAME}-${VERSION}.src.tar.xz https://github.com/llvm/llvm-project/releases/download/llvmorg-${VERSION}/cmake-${VERSION}.src.tar.xz " SRC_DIR="${NAME}-${VERSION}.src" PATCH_URI=" 20.1.2-cygwin-defaults.patch 8.0.1-cygwin-nodefaultlibs.patch 20.1.2-cygwin-profile.patch 20.1.2-cygwin-pthread_key_t.patch " CYGPORT_USE_UNSTABLE_API=1 src_unpack_hook() { for p in cmake; do if [ -d ../${p}-${VERSION}.src ]; then pushd .. ln -sf ${p}-${VERSION}.src ${p} popd fi done } CYGCMAKE_ARGS=" -DLLVM_CONFIG=/usr/bin/llvm-config -DCOMPILER_RT_INSTALL_PATH=/usr/lib/clang/${VERSION} "