diff options
Diffstat (limited to 'sys-devel/lld')
-rw-r--r-- | sys-devel/lld/Manifest | 1 | ||||
-rw-r--r-- | sys-devel/lld/lld-17.0.0.9999.ebuild | 83 |
2 files changed, 84 insertions, 0 deletions
diff --git a/sys-devel/lld/Manifest b/sys-devel/lld/Manifest index 0a701a2ff2c5..1288b0c76d27 100644 --- a/sys-devel/lld/Manifest +++ b/sys-devel/lld/Manifest @@ -12,4 +12,5 @@ EBUILD lld-15.0.6.ebuild 2094 BLAKE2B 1994e3430ea215e4c8aa54f84e1c845c3bf1dfa164 EBUILD lld-15.0.7.ebuild 2098 BLAKE2B 8e663356c8c37602578ba3b80f3d94561b932d07c6a2f6275d5101a0bac9c787c6067b9515002146e8d9ef37f36289c51573d1af518b81286c3d40fc6c26f415 SHA512 3d45615613dfcb62fc4f75d7aa3c414ef5db07cbfdee25018a8732bb04cb609df4125a9a01cd4851a9b9289b096c2148357fb9076d9c4663697dab95ddf1a19a EBUILD lld-16.0.0.9999.ebuild 2029 BLAKE2B 65cf3f20ddf1a4e3c9019df2fb9afc6bca038d88dbd29bbd7ea6c767e68ec2b824f4be6b04139bf98211177c30db0fd9ed5f351e0207d1530382c6fb618a3d19 SHA512 69eb8e93fd5f28789dca326dbbb658c4060b57ccdeae7e12aec5d842aeb944748a167983b67c00a98972cfff7350ac54ffe381db54c3d7a18e7970ca0190bf34 EBUILD lld-16.0.0_pre20230107.ebuild 2029 BLAKE2B 65cf3f20ddf1a4e3c9019df2fb9afc6bca038d88dbd29bbd7ea6c767e68ec2b824f4be6b04139bf98211177c30db0fd9ed5f351e0207d1530382c6fb618a3d19 SHA512 69eb8e93fd5f28789dca326dbbb658c4060b57ccdeae7e12aec5d842aeb944748a167983b67c00a98972cfff7350ac54ffe381db54c3d7a18e7970ca0190bf34 +EBUILD lld-17.0.0.9999.ebuild 2029 BLAKE2B 65cf3f20ddf1a4e3c9019df2fb9afc6bca038d88dbd29bbd7ea6c767e68ec2b824f4be6b04139bf98211177c30db0fd9ed5f351e0207d1530382c6fb618a3d19 SHA512 69eb8e93fd5f28789dca326dbbb658c4060b57ccdeae7e12aec5d842aeb944748a167983b67c00a98972cfff7350ac54ffe381db54c3d7a18e7970ca0190bf34 MISC metadata.xml 299 BLAKE2B 2feead2cd1b35b3a43335ddd7711f8181b52bc63ee7166608914260c67528add5251349063afbef4f8cf0ec09b2cd4c3ffdd90f2c14ed60bb69ebc03888f6333 SHA512 cd745c54ab18d25bdaff18582105072574103a36cfe7c175ef740f266d00e9fc6f44c332904d23b911c939cf5bdf52973b388923099d8dd5dfef3c283b5cb685 diff --git a/sys-devel/lld/lld-17.0.0.9999.ebuild b/sys-devel/lld/lld-17.0.0.9999.ebuild new file mode 100644 index 000000000000..a540e3ab0cb3 --- /dev/null +++ b/sys-devel/lld/lld-17.0.0.9999.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..11} ) +inherit cmake flag-o-matic llvm llvm.org python-any-r1 + +DESCRIPTION="The LLVM linker (link editor)" +HOMEPAGE="https://llvm.org/" + +LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA" +SLOT="${LLVM_MAJOR}/${LLVM_SOABI}" +KEYWORDS="" +IUSE="debug test zstd" +RESTRICT="!test? ( test )" + +DEPEND=" + ~sys-devel/llvm-${PV}[zstd=] + sys-libs/zlib:= + zstd? ( app-arch/zstd:= ) +" +RDEPEND=" + ${DEPEND} + !sys-devel/lld:0 +" +BDEPEND=" + test? ( + >=dev-util/cmake-3.16 + $(python_gen_any_dep ">=dev-python/lit-${PV}[\${PYTHON_USEDEP}]") + ) +" +PDEPEND=" + >=sys-devel/lld-toolchain-symlinks-16-r2:${LLVM_MAJOR} +" + +LLVM_COMPONENTS=( lld cmake libunwind/include/mach-o ) +LLVM_TEST_COMPONENTS=( llvm/utils third-party ) +llvm.org_set_globals + +python_check_deps() { + python_has_version ">=dev-python/lit-${PV}[${PYTHON_USEDEP}]" +} + +pkg_setup() { + LLVM_MAX_SLOT=${LLVM_MAJOR} llvm_pkg_setup + use test && python-any-r1_pkg_setup +} + +src_unpack() { + llvm.org_src_unpack + + # Directory ${WORKDIR}/llvm does not exist with USE="-test", + # but LLVM_MAIN_SRC_DIR="${WORKDIR}/llvm" is set below, + # and ${LLVM_MAIN_SRC_DIR}/../libunwind/include is used by build system + # (lld/MachO/CMakeLists.txt) and is expected to be resolvable + # to existent directory ${WORKDIR}/libunwind/include. + mkdir -p "${WORKDIR}/llvm" || die +} + +src_configure() { + # LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844 + use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG" + + use elibc_musl && append-ldflags -Wl,-z,stack-size=2097152 + + local mycmakeargs=( + -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr/lib/llvm/${LLVM_MAJOR}" + -DBUILD_SHARED_LIBS=ON + -DLLVM_INCLUDE_TESTS=$(usex test) + ) + use test && mycmakeargs+=( + -DLLVM_EXTERNAL_LIT="${EPREFIX}/usr/bin/lit" + -DLLVM_LIT_ARGS="$(get_lit_flags)" + -DPython3_EXECUTABLE="${PYTHON}" + ) + cmake_src_configure +} + +src_test() { + local -x LIT_PRESERVES_TMP=1 + cmake_build check-lld +} |