diff options
Diffstat (limited to 'sys-devel/lld')
-rw-r--r-- | sys-devel/lld/Manifest | 2 | ||||
-rw-r--r-- | sys-devel/lld/lld-16.0.0_pre20230127.ebuild | 83 |
2 files changed, 85 insertions, 0 deletions
diff --git a/sys-devel/lld/Manifest b/sys-devel/lld/Manifest index 233d70e8fbbb..222e81379a00 100644 --- a/sys-devel/lld/Manifest +++ b/sys-devel/lld/Manifest @@ -2,6 +2,7 @@ DIST llvm-project-14.0.6.src.tar.xz 105618228 BLAKE2B ee67c5407df8cef493b9c0004f DIST llvm-project-14.0.6.src.tar.xz.sig 566 BLAKE2B cb658ad43d8ab6c43a5773aedadf0569c97b5ee4b1bd58eceb10e1879a30880c741c3d66bedd462c892309b688fb7b2673115a62d1f74d71ee375a578de9547f SHA512 b4a7b368532a7a4a24376cfa7db8f6d3478f6d4446474342fc00b474ecf466330cd0f16783209263c4c72d5fc7ddedfb11b95578842e700cfb7ee0bb34cc95d6 DIST llvm-project-15.0.7.src.tar.xz 110936452 BLAKE2B f3d277e2029157329e5be78b78af36b0826a1dfd9a337992499bf701e33149665bfc47d5e14978e38f342559629a559f8b2ce328705ba34fdf6830f5ae9721a5 SHA512 4836d3603f32e8e54434cbfa8ef33d9d473ac5dc20ebf9c67132653c73f4524931abd1084655eaee5f20bcfcb91bcc4bbc5c4a0b603ad0c9029c556e14dc4c52 DIST llvm-project-15.0.7.src.tar.xz.sig 566 BLAKE2B 47dc8c82d86237b80c6d85f83a6c9a6e9e174cf8e7f367b071e0cd9481d7cd408e991337c5624e07f3f370f26387c814f212808575ed1c1b58404d3e3836b7df SHA512 fc6891b440dd1175eb8df3790590af8d36bc92301660f84744ae15123475aeb900a151e6a8e7998ded27ec4d86871903ad0b89cd61164943054c2e3bc8d8beb2 +DIST llvm-project-46d5a57801bc37e5ebb1a4d6b2acc0fa99c01e8d.tar.gz 180436731 BLAKE2B 51c30c3f11dd55a225b8ebe4ded752ce9e8eb58751e7458c29901dbdd3673f94892d337d111d696e779e3f7ef0bca6c7d79709e2072a4bf3a001d8813125d571 SHA512 ebbe0f8becac39d63433dcc3de474c40f1215fc8faab94fa2ba869d28e66b27e4fe088377bd7ae64575a6d7b07017b88bf92e5488a3185a753e647d8da352bbf DIST llvm-project-6dc85bd3fde7df2999fda07e9e9f2e83d52c6125.tar.gz 175208511 BLAKE2B cf87cf7e9bf7c74aab8ccda0f153369cb81798047fdd48025c3c7030857b128babbaafb667385a5c8e9916e16038b14fee39f1623d329471e73c39c2f2d7bbfa SHA512 e6dc0cacd6c079be8a00364e4c244782d764d9a8d514d65f9078427cb4a0c1663ff88761bfbc1e955a1a990451439110497c2cb7af7f56b2c91f2e9db4389894 DIST llvmorg-13.0.1.tar.gz 147290251 BLAKE2B 2a44b012a672501761d0c27c6b3a315b69bfef0cd13b078a7e7d2fccc4a9c8c0f2bee0f164c4271c9106b0a99cb06e8b64986f66253b613336719fb86b82541b SHA512 9a8cb5d11964ba88b7624f19ec861fb28701f23956ea3c92f6ac644332d5f41fde97bd8933dd3ee70ed378058c252fa3a3887c8d1af90d219970c2b27691166f EBUILD lld-13.0.1-r1.ebuild 2003 BLAKE2B 2fed1597f869a715267d27db0ce1a713e9a5dc65bddd21a1ef5be08e2ac756dc04d3db49d5b01c9781161da2a4bf100cd5fc01d772a2ac1819aec1e24408f9c7 SHA512 b690f7092574da74300d3ff36764a6a3b1dc722e1600c0d1d6712eb21052825994fe1c2aaf2db0359466657ac83083f1e617cbc89fc8f0d2c8fff2b6a5bdd948 @@ -9,5 +10,6 @@ EBUILD lld-14.0.6-r1.ebuild 2009 BLAKE2B 4db1dfc9b1997d31cc68240ae0b05afeae5a6b1 EBUILD lld-15.0.7.ebuild 2094 BLAKE2B 1994e3430ea215e4c8aa54f84e1c845c3bf1dfa164b6c1ba785bcba027bf7e4c422c8fe58a31f5910fbce067a1091b889caf95067c6c213ffe5de0f0dda1d18a SHA512 9c25a149905220c3cd9d5ffc0f1c80481394433f0e87d76455f6f4ee50d1e43c9399e262e21f3095edfc261f670b7fc10f35a11b9dddb1bc8d3d10f151c70f66 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-16.0.0_pre20230127.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-16.0.0_pre20230127.ebuild b/sys-devel/lld/lld-16.0.0_pre20230127.ebuild new file mode 100644 index 000000000000..a540e3ab0cb3 --- /dev/null +++ b/sys-devel/lld/lld-16.0.0_pre20230127.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 +} |