diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-06-21 17:50:24 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-06-21 17:50:24 +0100 |
commit | feb0daf81d888e9160f9f94502de09b66f2a63fd (patch) | |
tree | b6e5c40ce2abef3da27ed50a023153f475e0ddef /sys-libs/libcxxabi/libcxxabi-11.0.0.9999.ebuild | |
parent | 9452a6e87b6c2c70513bc47a2470bf9f1168920e (diff) |
gentoo resync : 21.06.2020
Diffstat (limited to 'sys-libs/libcxxabi/libcxxabi-11.0.0.9999.ebuild')
-rw-r--r-- | sys-libs/libcxxabi/libcxxabi-11.0.0.9999.ebuild | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/sys-libs/libcxxabi/libcxxabi-11.0.0.9999.ebuild b/sys-libs/libcxxabi/libcxxabi-11.0.0.9999.ebuild index 7946dde2bb22..b4d67fc8e6d6 100644 --- a/sys-libs/libcxxabi/libcxxabi-11.0.0.9999.ebuild +++ b/sys-libs/libcxxabi/libcxxabi-11.0.0.9999.ebuild @@ -3,7 +3,8 @@ EAPI=7 -PYTHON_COMPAT=( python3_{6,7,8} ) +CMAKE_ECLASS=cmake +PYTHON_COMPAT=( python3_{6..9} ) inherit cmake-multilib llvm llvm.org multiprocessing python-any-r1 toolchain-funcs DESCRIPTION="Low level support for a standard C++ library" @@ -44,6 +45,13 @@ pkg_setup() { use test && python-any-r1_pkg_setup } +src_prepare() { + # cmake eclasses suck by forcing ${S} here + CMAKE_USE_DIR=${S} \ + S=${WORKDIR} \ + cmake_src_prepare +} + multilib_src_configure() { # link against compiler-rt instead of libgcc if we are using clang with libunwind local want_compiler_rt=OFF @@ -80,7 +88,7 @@ multilib_src_configure() { -DLLVM_LIT_ARGS="-vv;-j;${jobs};--param=cxx_under_test=${clang_path}" ) fi - cmake-utils_src_configure + cmake_src_configure } build_libcxx() { @@ -100,8 +108,8 @@ build_libcxx() { -DLIBCXX_INCLUDE_TESTS=OFF ) - cmake-utils_src_configure - cmake-utils_src_compile + cmake_src_configure + cmake_src_compile } multilib_src_test() { @@ -110,7 +118,7 @@ multilib_src_test() { mv "${BUILD_DIR}"/libcxx/lib/libc++* "${BUILD_DIR}/$(get_libdir)/" || die local -x LIT_PRESERVES_TMP=1 - cmake-utils_src_make check-cxxabi + cmake_build check-cxxabi } multilib_src_install_all() { |