diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-12-11 12:25:13 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-12-11 12:53:21 +0100 |
commit | e572f2011e30b309d26963ac156a7af860ad0d42 (patch) | |
tree | 4c1e2d96089ee2cea60086e31d72c4080fe19811 /llvm-core | |
parent | Move {sys-devel → llvm-core}/lld-toolchain-symlinks (diff) | |
download | gentoo-e572f2011e30b309d26963ac156a7af860ad0d42.tar.gz gentoo-e572f2011e30b309d26963ac156a7af860ad0d42.tar.bz2 gentoo-e572f2011e30b309d26963ac156a7af860ad0d42.zip |
Move {sys-devel → llvm-core}/lld
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'llvm-core')
38 files changed, 781 insertions, 28 deletions
diff --git a/llvm-core/clang-common/clang-common-15.0.7-r10.ebuild b/llvm-core/clang-common/clang-common-15.0.7-r10.ebuild index 34e9b465f1c6..e0f714bebce1 100644 --- a/llvm-core/clang-common/clang-common-15.0.7-r10.ebuild +++ b/llvm-core/clang-common/clang-common-15.0.7-r10.ebuild @@ -25,7 +25,7 @@ PDEPEND=" !default-compiler-rt? ( sys-devel/gcc ) default-libcxx? ( >=llvm-runtimes/libcxx-${PV}[static-libs] ) !default-libcxx? ( sys-devel/gcc ) - default-lld? ( >=sys-devel/lld-${PV} ) + default-lld? ( >=llvm-core/lld-${PV} ) !default-lld? ( sys-devel/binutils ) " IDEPEND=" diff --git a/llvm-core/clang-common/clang-common-16.0.6-r6.ebuild b/llvm-core/clang-common/clang-common-16.0.6-r6.ebuild index 289c2d527507..ac23cdc19da0 100644 --- a/llvm-core/clang-common/clang-common-16.0.6-r6.ebuild +++ b/llvm-core/clang-common/clang-common-16.0.6-r6.ebuild @@ -25,7 +25,7 @@ PDEPEND=" !default-compiler-rt? ( sys-devel/gcc ) default-libcxx? ( >=llvm-runtimes/libcxx-${PV}[static-libs] ) !default-libcxx? ( sys-devel/gcc ) - default-lld? ( >=sys-devel/lld-${PV} ) + default-lld? ( >=llvm-core/lld-${PV} ) !default-lld? ( sys-devel/binutils ) " IDEPEND=" diff --git a/llvm-core/clang-common/clang-common-17.0.6-r10.ebuild b/llvm-core/clang-common/clang-common-17.0.6-r10.ebuild index 82658b6f7f3f..0c440a21545b 100644 --- a/llvm-core/clang-common/clang-common-17.0.6-r10.ebuild +++ b/llvm-core/clang-common/clang-common-17.0.6-r10.ebuild @@ -25,7 +25,7 @@ PDEPEND=" !default-compiler-rt? ( sys-devel/gcc ) default-libcxx? ( >=llvm-runtimes/libcxx-${PV}[static-libs] ) !default-libcxx? ( sys-devel/gcc ) - default-lld? ( >=sys-devel/lld-${PV} ) + default-lld? ( >=llvm-core/lld-${PV} ) !default-lld? ( sys-devel/binutils ) " IDEPEND=" diff --git a/llvm-core/clang-common/clang-common-17.0.6-r9.ebuild b/llvm-core/clang-common/clang-common-17.0.6-r9.ebuild index 10c27ef4f0d7..cdcf5fd46e78 100644 --- a/llvm-core/clang-common/clang-common-17.0.6-r9.ebuild +++ b/llvm-core/clang-common/clang-common-17.0.6-r9.ebuild @@ -25,7 +25,7 @@ PDEPEND=" !default-compiler-rt? ( sys-devel/gcc ) default-libcxx? ( >=llvm-runtimes/libcxx-${PV}[static-libs] ) !default-libcxx? ( sys-devel/gcc ) - default-lld? ( >=sys-devel/lld-${PV} ) + default-lld? ( >=llvm-core/lld-${PV} ) !default-lld? ( sys-devel/binutils ) " IDEPEND=" diff --git a/llvm-core/clang-common/clang-common-18.1.8-r3.ebuild b/llvm-core/clang-common/clang-common-18.1.8-r3.ebuild index 051dd8834bba..8987b7168ef1 100644 --- a/llvm-core/clang-common/clang-common-18.1.8-r3.ebuild +++ b/llvm-core/clang-common/clang-common-18.1.8-r3.ebuild @@ -25,7 +25,7 @@ PDEPEND=" !default-compiler-rt? ( sys-devel/gcc ) default-libcxx? ( >=llvm-runtimes/libcxx-${PV}[static-libs] ) !default-libcxx? ( sys-devel/gcc ) - default-lld? ( >=sys-devel/lld-${PV} ) + default-lld? ( >=llvm-core/lld-${PV} ) !default-lld? ( sys-devel/binutils ) " IDEPEND=" diff --git a/llvm-core/clang-common/clang-common-19.1.4.ebuild b/llvm-core/clang-common/clang-common-19.1.4.ebuild index 3070a45b5cbc..09c980da55b4 100644 --- a/llvm-core/clang-common/clang-common-19.1.4.ebuild +++ b/llvm-core/clang-common/clang-common-19.1.4.ebuild @@ -25,7 +25,7 @@ PDEPEND=" !default-compiler-rt? ( sys-devel/gcc ) default-libcxx? ( >=llvm-runtimes/libcxx-${PV}[static-libs] ) !default-libcxx? ( sys-devel/gcc ) - default-lld? ( >=sys-devel/lld-${PV} ) + default-lld? ( >=llvm-core/lld-${PV} ) !default-lld? ( sys-devel/binutils ) " IDEPEND=" diff --git a/llvm-core/clang-common/clang-common-19.1.5.ebuild b/llvm-core/clang-common/clang-common-19.1.5.ebuild index 7ea82e998968..01f58a6b11dc 100644 --- a/llvm-core/clang-common/clang-common-19.1.5.ebuild +++ b/llvm-core/clang-common/clang-common-19.1.5.ebuild @@ -25,7 +25,7 @@ PDEPEND=" !default-compiler-rt? ( sys-devel/gcc ) default-libcxx? ( >=llvm-runtimes/libcxx-${PV}[static-libs] ) !default-libcxx? ( sys-devel/gcc ) - default-lld? ( >=sys-devel/lld-${PV} ) + default-lld? ( >=llvm-core/lld-${PV} ) !default-lld? ( sys-devel/binutils ) " IDEPEND=" diff --git a/llvm-core/clang-common/clang-common-20.0.0.9999.ebuild b/llvm-core/clang-common/clang-common-20.0.0.9999.ebuild index e7d4e8c21639..8e66cf2865d9 100644 --- a/llvm-core/clang-common/clang-common-20.0.0.9999.ebuild +++ b/llvm-core/clang-common/clang-common-20.0.0.9999.ebuild @@ -24,7 +24,7 @@ PDEPEND=" !default-compiler-rt? ( sys-devel/gcc ) default-libcxx? ( >=llvm-runtimes/libcxx-${PV}[static-libs] ) !default-libcxx? ( sys-devel/gcc ) - default-lld? ( >=sys-devel/lld-${PV} ) + default-lld? ( >=llvm-core/lld-${PV} ) !default-lld? ( sys-devel/binutils ) " IDEPEND=" diff --git a/llvm-core/clang-common/clang-common-20.0.0_pre20241207.ebuild b/llvm-core/clang-common/clang-common-20.0.0_pre20241207.ebuild index e7d4e8c21639..8e66cf2865d9 100644 --- a/llvm-core/clang-common/clang-common-20.0.0_pre20241207.ebuild +++ b/llvm-core/clang-common/clang-common-20.0.0_pre20241207.ebuild @@ -24,7 +24,7 @@ PDEPEND=" !default-compiler-rt? ( sys-devel/gcc ) default-libcxx? ( >=llvm-runtimes/libcxx-${PV}[static-libs] ) !default-libcxx? ( sys-devel/gcc ) - default-lld? ( >=sys-devel/lld-${PV} ) + default-lld? ( >=llvm-core/lld-${PV} ) !default-lld? ( sys-devel/binutils ) " IDEPEND=" diff --git a/llvm-core/clang/clang-18.1.8-r6.ebuild b/llvm-core/clang/clang-18.1.8-r6.ebuild index 0d3009711687..e2306f3f7148 100644 --- a/llvm-core/clang/clang-18.1.8-r6.ebuild +++ b/llvm-core/clang/clang-18.1.8-r6.ebuild @@ -35,7 +35,7 @@ RDEPEND=" " BDEPEND=" ${PYTHON_DEPS} - test? ( ~sys-devel/lld-${PV} ) + test? ( ~llvm-core/lld-${PV} ) xml? ( virtual/pkgconfig ) " PDEPEND=" diff --git a/llvm-core/clang/clang-19.1.4.ebuild b/llvm-core/clang/clang-19.1.4.ebuild index 32864313b82e..8d30d6552d1b 100644 --- a/llvm-core/clang/clang-19.1.4.ebuild +++ b/llvm-core/clang/clang-19.1.4.ebuild @@ -34,7 +34,7 @@ RDEPEND=" " BDEPEND=" ${PYTHON_DEPS} - test? ( ~sys-devel/lld-${PV} ) + test? ( ~llvm-core/lld-${PV} ) xml? ( virtual/pkgconfig ) " PDEPEND=" diff --git a/llvm-core/clang/clang-19.1.5.ebuild b/llvm-core/clang/clang-19.1.5.ebuild index c4e619b36326..e42660374276 100644 --- a/llvm-core/clang/clang-19.1.5.ebuild +++ b/llvm-core/clang/clang-19.1.5.ebuild @@ -34,7 +34,7 @@ RDEPEND=" " BDEPEND=" ${PYTHON_DEPS} - test? ( ~sys-devel/lld-${PV} ) + test? ( ~llvm-core/lld-${PV} ) xml? ( virtual/pkgconfig ) " PDEPEND=" diff --git a/llvm-core/clang/clang-20.0.0.9999.ebuild b/llvm-core/clang/clang-20.0.0.9999.ebuild index f534244afe49..4fc6cef3e9ef 100644 --- a/llvm-core/clang/clang-20.0.0.9999.ebuild +++ b/llvm-core/clang/clang-20.0.0.9999.ebuild @@ -33,7 +33,7 @@ RDEPEND=" " BDEPEND=" ${PYTHON_DEPS} - test? ( ~sys-devel/lld-${PV} ) + test? ( ~llvm-core/lld-${PV} ) xml? ( virtual/pkgconfig ) " PDEPEND=" diff --git a/llvm-core/clang/clang-20.0.0_pre20241207.ebuild b/llvm-core/clang/clang-20.0.0_pre20241207.ebuild index f534244afe49..4fc6cef3e9ef 100644 --- a/llvm-core/clang/clang-20.0.0_pre20241207.ebuild +++ b/llvm-core/clang/clang-20.0.0_pre20241207.ebuild @@ -33,7 +33,7 @@ RDEPEND=" " BDEPEND=" ${PYTHON_DEPS} - test? ( ~sys-devel/lld-${PV} ) + test? ( ~llvm-core/lld-${PV} ) xml? ( virtual/pkgconfig ) " PDEPEND=" diff --git a/llvm-core/lld-toolchain-symlinks/lld-toolchain-symlinks-15-r2.ebuild b/llvm-core/lld-toolchain-symlinks/lld-toolchain-symlinks-15-r2.ebuild index 45aa04874c6e..949e78559f4c 100644 --- a/llvm-core/lld-toolchain-symlinks/lld-toolchain-symlinks-15-r2.ebuild +++ b/llvm-core/lld-toolchain-symlinks/lld-toolchain-symlinks-15-r2.ebuild @@ -15,7 +15,7 @@ KEYWORDS="amd64 arm arm64 ~ppc ppc64 ~riscv x86" IUSE="multilib-symlinks +native-symlinks" RDEPEND=" - sys-devel/lld:${SLOT} + llvm-core/lld:${SLOT} " src_install() { diff --git a/llvm-core/lld-toolchain-symlinks/lld-toolchain-symlinks-16-r2.ebuild b/llvm-core/lld-toolchain-symlinks/lld-toolchain-symlinks-16-r2.ebuild index 2eb282b65da9..8c328779c4a9 100644 --- a/llvm-core/lld-toolchain-symlinks/lld-toolchain-symlinks-16-r2.ebuild +++ b/llvm-core/lld-toolchain-symlinks/lld-toolchain-symlinks-16-r2.ebuild @@ -15,7 +15,7 @@ KEYWORDS="amd64 arm arm64 ~ppc ppc64 ~riscv x86 ~arm64-macos" IUSE="multilib-symlinks +native-symlinks" RDEPEND=" - sys-devel/lld:${SLOT} + llvm-core/lld:${SLOT} " src_install() { diff --git a/llvm-core/lld-toolchain-symlinks/lld-toolchain-symlinks-17.ebuild b/llvm-core/lld-toolchain-symlinks/lld-toolchain-symlinks-17.ebuild index d8b2ae18b0fb..58e760c87178 100644 --- a/llvm-core/lld-toolchain-symlinks/lld-toolchain-symlinks-17.ebuild +++ b/llvm-core/lld-toolchain-symlinks/lld-toolchain-symlinks-17.ebuild @@ -15,7 +15,7 @@ KEYWORDS="amd64 arm arm64 ~loong ~ppc ppc64 ~riscv x86 ~arm64-macos" IUSE="multilib-symlinks +native-symlinks" RDEPEND=" - sys-devel/lld:${SLOT} + llvm-core/lld:${SLOT} " src_install() { diff --git a/llvm-core/lld-toolchain-symlinks/lld-toolchain-symlinks-18.ebuild b/llvm-core/lld-toolchain-symlinks/lld-toolchain-symlinks-18.ebuild index 8e68ec8ad532..d17a038c92ab 100644 --- a/llvm-core/lld-toolchain-symlinks/lld-toolchain-symlinks-18.ebuild +++ b/llvm-core/lld-toolchain-symlinks/lld-toolchain-symlinks-18.ebuild @@ -15,7 +15,7 @@ KEYWORDS="amd64 arm arm64 ~loong ~mips ppc ppc64 ~riscv sparc x86 ~arm64-macos" IUSE="multilib-symlinks +native-symlinks" RDEPEND=" - sys-devel/lld:${SLOT} + llvm-core/lld:${SLOT} " src_install() { diff --git a/llvm-core/lld-toolchain-symlinks/lld-toolchain-symlinks-19.ebuild b/llvm-core/lld-toolchain-symlinks/lld-toolchain-symlinks-19.ebuild index c891d75c9465..a497320b7e04 100644 --- a/llvm-core/lld-toolchain-symlinks/lld-toolchain-symlinks-19.ebuild +++ b/llvm-core/lld-toolchain-symlinks/lld-toolchain-symlinks-19.ebuild @@ -15,7 +15,7 @@ KEYWORDS="amd64 arm arm64 ~loong ~mips ppc ppc64 ~riscv sparc x86 ~arm64-macos ~ IUSE="multilib-symlinks +native-symlinks" RDEPEND=" - sys-devel/lld:${SLOT} + llvm-core/lld:${SLOT} " src_install() { diff --git a/llvm-core/lld-toolchain-symlinks/lld-toolchain-symlinks-20.ebuild b/llvm-core/lld-toolchain-symlinks/lld-toolchain-symlinks-20.ebuild index b85bf912c557..e58a60dc3813 100644 --- a/llvm-core/lld-toolchain-symlinks/lld-toolchain-symlinks-20.ebuild +++ b/llvm-core/lld-toolchain-symlinks/lld-toolchain-symlinks-20.ebuild @@ -14,7 +14,7 @@ SLOT="${PV}" IUSE="multilib-symlinks +native-symlinks" RDEPEND=" - sys-devel/lld:${SLOT} + llvm-core/lld:${SLOT} " src_install() { diff --git a/llvm-core/lld/Manifest b/llvm-core/lld/Manifest new file mode 100644 index 000000000000..367c5fa53be8 --- /dev/null +++ b/llvm-core/lld/Manifest @@ -0,0 +1,14 @@ +DIST llvm-gentoo-patchset-16.0.6-r1.tar.xz 17780 BLAKE2B e7c97916df463ff6d3d6374290bad86b3f2a7189fd9da3c6c808cb84160f904f4de1dffa7e98b32d7cacf904beea2df74116384960b0619ff30b7125839fc950 SHA512 74f86aa11614dd86a4af0cba514e98006d6df8ff15effc0c3598c291c7c6139f9310dc2e3ee25e8a3fa960e8a51986a4c48412a8e7269064197102fd9bbeac7c +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-16.0.6.src.tar.xz 118013488 BLAKE2B 95192d39cbd2914e5609db365965f1c00bfea6c2d653b3996bd2acef8a2b37e37f6fc8a9d2b65711ad72657e0ef52c42f733053cf65051e7822f27396c30406d SHA512 89a67ebfbbc764cc456e8825ecfa90707741f8835b1b2adffae0b227ab1fe5ca9cce75b0efaffc9ca8431cae528dc54fd838867a56a2b645344d9e82d19ab1b7 +DIST llvm-project-16.0.6.src.tar.xz.sig 566 BLAKE2B 2060cebd5ed57cb8a86a44238c43dfd4b921649298b10c3d19da308374c1e49869174294e29943c2af459fe06428264e26881d6c1288ebbc48686cc2cf467c7a SHA512 ca249262c7102e0889ec1bdc6f71a3a6f0e7e5d5fbab8abcd6fccd2871e7955eff7af5b055a76006097baf0dfaf2f5069eff3035b3107fc552abdb2481b21447 +DIST llvm-project-17.0.6.src.tar.xz 127838860 BLAKE2B d6ede1a9fda8756995c3e0654111941649e15794179641806f18919f1dc68c41ca0cabd5693b5096d05dccc3a391cd20d34af1137bf8af92ed3117a1ce84d1b2 SHA512 6d85bf749e0d77553cc215cbfa61cec4ac4f4f652847f56f946b6a892a99a5ea40b6ab8b39a9708a035001f007986941ccf17e4635260a8b0c1fa59e78d41e30 +DIST llvm-project-17.0.6.src.tar.xz.sig 438 BLAKE2B 186e75b6a0fbfe1e85408589c149e1800fcc47d685b74e4260018e05cd08bc793d1d1197c9c50e177eea941a3d0c65cb0c583ce6dae449099b920adf8a508ef7 SHA512 f78c55053a6450625f3e95f52c305110b4468a9854fec75831b65b8d6ceee3c9206ab9e63c4b5fda8be9bd344f72cfbdaae0520ed240abd505e08ebeaa25d340 +DIST llvm-project-18.1.8.src.tar.xz 132067260 BLAKE2B a950492f1dbfb874dff63b1ffef86468169ba2f211a9733ec2d4cf30040f7f277ef00f048bb44dee9f97d7d762f0f241f19e5a2a7b0b49217d3821ddfc8c354f SHA512 25eeee9984c8b4d0fbc240df90f33cbb000d3b0414baff5c8982beafcc5e59e7ef18f6f85d95b3a5f60cb3d4cd4f877c80487b5768bc21bc833f107698ad93db +DIST llvm-project-18.1.8.src.tar.xz.sig 566 BLAKE2B 6ab0efc5b38d4483f4e32e8b85774b2edd5d88fdf29f23b88eb0b5130a7a7f0e80549612b025f927e92de4a08ff7c292cff224dbda91a5d598244e98f7ad0fbd SHA512 ddfd1e8a06756759af6cbe488c82a6d6a62ba91f3e8a0eb4cece561321824f5d165b08ed91010588790b76e19790931d2651b24dba8567e3b151d3cb43bec25b +DIST llvm-project-19.1.4.src.tar.xz 141255156 BLAKE2B b99cd8a96e38dbcfb582ee5d2250268df36fb94fa0fd5b3611484094fbd7962051978334d2c623d2ff5a0209dbb2c6c6492be0146507ae982a7d3e9705a689c5 SHA512 a586f8a41dde5e0d9ca6d8c58e9ef2a2e59b70a86d2e2c46106dc31b5c096bb80af0cdbdb486179e9cc676a540099f49a1c2db9e5e84c50362db1f72e9af6906 +DIST llvm-project-19.1.4.src.tar.xz.sig 438 BLAKE2B b0925bdb761046d69779e0b035e29430bc09ef2b81be763aa5c853793631d7b7fdd65eb4dae7a1e3b4daa15d189c24cd1e14f065f79fdbf75429fa34be9b330e SHA512 3fb4a6c7594cb43680860698dac47062dde30de60f515dcecdad63812ea1edfb2cb209d0a7ac2254589c245a95b7c0f571b582e0d4b97a6ae8242563483ea764 +DIST llvm-project-19.1.5.src.tar.xz 141243716 BLAKE2B 228fc66ab688abfc16f31b2cd83163b81ef61604ace21eab69a1776f0dc88cbe8fa831162205849e5be3975a214136399572b4ad1b908986e37b2d38a1a7fa5d SHA512 648854e9c91fdcc5c677ce3800e046f2060b998a45cf9f7eebe02898431b3924f9348b6fc366102cd4fdda72dcb8f32076f98aa69927e0e20b3f1007fba10b22 +DIST llvm-project-19.1.5.src.tar.xz.sig 438 BLAKE2B 1d40a5c5405f99ef86e3360f9ea153afd1ae4001697210fd799a988113e8a3cef39e2c4794edd9332f384d8490f4ce2ab6bee6d98f794f84775807f833b81c0a SHA512 a438c86ce882eb1ac3e50842937068794ed162bb1b7ded68a2fe3ec2ab4f57cc38aee667cfb46afe6da22eef7ed1cb65820a473f63bd5a0dc6aad41df7bfad54 +DIST llvm-project-32f7f0010bca99ee4bd917f57272733fb2bf3bd9.tar.gz 223983502 BLAKE2B fd3e6b0b795abc42568ef98fa774d927029c18838a5d0f34eaa66c37976444a63f2fc5d883f3bf3a98533f51e387936f1c659230f31c757d26153425696a16cd SHA512 65a345ad5b77c627008f759947e5e9f28a62c8992d7146113e0446e5849feaf9088c15c8b22ca0824af5b927d6a417f5326258b489fb8ccea78ec9e0e0fe8fba diff --git a/llvm-core/lld/lld-15.0.7.ebuild b/llvm-core/lld/lld-15.0.7.ebuild new file mode 100644 index 000000000000..e75527f1a63f --- /dev/null +++ b/llvm-core/lld/lld-15.0.7.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..11} ) +inherit cmake flag-o-matic llvm llvm.org python-any-r1 toolchain-funcs + +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="amd64 arm arm64 ~ppc ppc64 ~riscv x86" +IUSE="debug test" +RESTRICT="!test? ( test )" + +DEPEND=" + ~sys-devel/llvm-${PV} + sys-libs/zlib:= +" +RDEPEND=" + ${DEPEND} + !llvm-core/lld:0 +" +BDEPEND=" + sys-devel/llvm:${LLVM_MAJOR} + test? ( + $(python_gen_any_dep ">=dev-python/lit-${PV}[\${PYTHON_USEDEP}]") + ) +" +PDEPEND=" + >=llvm-core/lld-toolchain-symlinks-15-r2:${LLVM_MAJOR} +" + +LLVM_COMPONENTS=( lld cmake libunwind/include/mach-o ) +LLVM_TEST_COMPONENTS=( llvm/utils/{lit,unittest} ) +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) + -DLLVM_MAIN_SRC_DIR="${WORKDIR}/llvm" + -DLLVM_ENABLE_ZLIB=FORCE_ON + ) + + use test && mycmakeargs+=( + -DLLVM_BUILD_TESTS=ON + -DLLVM_EXTERNAL_LIT="${EPREFIX}/usr/bin/lit" + -DLLVM_LIT_ARGS="$(get_lit_flags)" + -DPython3_EXECUTABLE="${PYTHON}" + ) + + tc-is-cross-compiler && mycmakeargs+=( + -DLLVM_TABLEGEN_EXE="${BROOT}/usr/lib/llvm/${LLVM_MAJOR}/bin/llvm-tblgen" + ) + + cmake_src_configure +} + +src_test() { + local -x LIT_PRESERVES_TMP=1 + cmake_build check-lld +} diff --git a/llvm-core/lld/lld-16.0.6.ebuild b/llvm-core/lld/lld-16.0.6.ebuild new file mode 100644 index 000000000000..3230e2beccd9 --- /dev/null +++ b/llvm-core/lld/lld-16.0.6.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) +inherit cmake flag-o-matic llvm llvm.org python-any-r1 toolchain-funcs + +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="amd64 arm arm64 ~ppc ppc64 ~riscv x86 ~arm64-macos" +IUSE="debug test zstd" +RESTRICT="!test? ( test )" + +DEPEND=" + ~sys-devel/llvm-${PV}[zstd=] + sys-libs/zlib:= + zstd? ( app-arch/zstd:= ) +" +RDEPEND=" + ${DEPEND} + !llvm-core/lld:0 +" +BDEPEND=" + sys-devel/llvm:${LLVM_MAJOR} + test? ( + $(python_gen_any_dep ">=dev-python/lit-${PV}[\${PYTHON_USEDEP}]") + ) +" +PDEPEND=" + >=llvm-core/lld-toolchain-symlinks-16-r2:${LLVM_MAJOR} +" + +LLVM_COMPONENTS=( lld cmake libunwind/include/mach-o ) +LLVM_TEST_COMPONENTS=( llvm/utils third-party ) +LLVM_PATCHSET=${PV}-r1 +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) + -DLLVM_ENABLE_ZLIB=FORCE_ON + -DLLVM_ENABLE_ZSTD=$(usex zstd FORCE_ON OFF) + ) + + use test && mycmakeargs+=( + -DLLVM_EXTERNAL_LIT="${EPREFIX}/usr/bin/lit" + -DLLVM_LIT_ARGS="$(get_lit_flags)" + -DPython3_EXECUTABLE="${PYTHON}" + ) + + tc-is-cross-compiler && mycmakeargs+=( + -DLLVM_TABLEGEN_EXE="${BROOT}/usr/lib/llvm/${LLVM_MAJOR}/bin/llvm-tblgen" + ) + + cmake_src_configure +} + +src_test() { + local -x LIT_PRESERVES_TMP=1 + cmake_build check-lld +} diff --git a/llvm-core/lld/lld-17.0.6.ebuild b/llvm-core/lld/lld-17.0.6.ebuild new file mode 100644 index 000000000000..6b31161d8b10 --- /dev/null +++ b/llvm-core/lld/lld-17.0.6.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) +inherit cmake flag-o-matic llvm llvm.org python-any-r1 toolchain-funcs + +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="amd64 arm arm64 ~loong ~ppc ppc64 ~riscv x86 ~arm64-macos" +IUSE="debug test zstd" +RESTRICT="!test? ( test )" + +DEPEND=" + ~sys-devel/llvm-${PV}[debug=,zstd=] + sys-libs/zlib:= + zstd? ( app-arch/zstd:= ) +" +RDEPEND=" + ${DEPEND} + !llvm-core/lld:0 +" +BDEPEND=" + sys-devel/llvm:${LLVM_MAJOR} + test? ( + $(python_gen_any_dep ">=dev-python/lit-${PV}[\${PYTHON_USEDEP}]") + ) +" +PDEPEND=" + >=llvm-core/lld-toolchain-symlinks-16-r2:${LLVM_MAJOR} +" + +LLVM_COMPONENTS=( lld cmake libunwind/include/mach-o ) +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() { + # ODR violations (https://github.com/llvm/llvm-project/issues/83529, bug #922353) + filter-lto + + # 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) + -DLLVM_ENABLE_ZLIB=FORCE_ON + -DLLVM_ENABLE_ZSTD=$(usex zstd FORCE_ON OFF) + ) + + use test && mycmakeargs+=( + -DLLVM_EXTERNAL_LIT="${EPREFIX}/usr/bin/lit" + -DLLVM_LIT_ARGS="$(get_lit_flags)" + -DPython3_EXECUTABLE="${PYTHON}" + ) + + tc-is-cross-compiler && mycmakeargs+=( + -DLLVM_TABLEGEN_EXE="${BROOT}/usr/lib/llvm/${LLVM_MAJOR}/bin/llvm-tblgen" + ) + + cmake_src_configure +} + +src_test() { + local -x LIT_PRESERVES_TMP=1 + cmake_build check-lld +} diff --git a/llvm-core/lld/lld-18.1.8.ebuild b/llvm-core/lld/lld-18.1.8.ebuild new file mode 100644 index 000000000000..232368200b62 --- /dev/null +++ b/llvm-core/lld/lld-18.1.8.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..13} ) +inherit cmake flag-o-matic llvm.org llvm-utils python-any-r1 toolchain-funcs + +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="amd64 arm arm64 ~loong ~mips ppc ppc64 ~riscv sparc x86 ~arm64-macos" +IUSE="debug test zstd" +RESTRICT="!test? ( test )" + +DEPEND=" + ~sys-devel/llvm-${PV}[debug=,zstd=] + sys-libs/zlib:= + zstd? ( app-arch/zstd:= ) +" +RDEPEND=" + ${DEPEND} + !llvm-core/lld:0 +" +BDEPEND=" + sys-devel/llvm:${LLVM_MAJOR} + test? ( + $(python_gen_any_dep ">=dev-python/lit-${PV}[\${PYTHON_USEDEP}]") + ) +" +PDEPEND=" + >=llvm-core/lld-toolchain-symlinks-16-r2:${LLVM_MAJOR} +" + +LLVM_COMPONENTS=( lld cmake libunwind/include/mach-o ) +llvm.org_set_globals + +python_check_deps() { + python_has_version ">=dev-python/lit-${PV}[${PYTHON_USEDEP}]" +} + +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_prepend_path "${LLVM_MAJOR}" + + # 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) + -DLLVM_ENABLE_ZLIB=FORCE_ON + -DLLVM_ENABLE_ZSTD=$(usex zstd FORCE_ON OFF) + ) + + use test && mycmakeargs+=( + -DLLVM_EXTERNAL_LIT="${EPREFIX}/usr/bin/lit" + -DLLVM_LIT_ARGS="$(get_lit_flags)" + -DPython3_EXECUTABLE="${PYTHON}" + ) + + tc-is-cross-compiler && mycmakeargs+=( + -DLLVM_TABLEGEN_EXE="${BROOT}/usr/lib/llvm/${LLVM_MAJOR}/bin/llvm-tblgen" + ) + + cmake_src_configure +} + +src_test() { + local -x LIT_PRESERVES_TMP=1 + cmake_build check-lld +} diff --git a/llvm-core/lld/lld-19.1.4.ebuild b/llvm-core/lld/lld-19.1.4.ebuild new file mode 100644 index 000000000000..2f0829b8376a --- /dev/null +++ b/llvm-core/lld/lld-19.1.4.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..13} ) +inherit cmake flag-o-matic llvm.org llvm-utils python-any-r1 toolchain-funcs + +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="amd64 arm arm64 ~loong ~mips ppc ppc64 ~riscv sparc x86 ~arm64-macos ~x64-macos" +IUSE="debug test zstd" +RESTRICT="!test? ( test )" + +DEPEND=" + ~sys-devel/llvm-${PV}[debug=,zstd=] + sys-libs/zlib:= + zstd? ( app-arch/zstd:= ) +" +RDEPEND=" + ${DEPEND} + !llvm-core/lld:0 +" +BDEPEND=" + sys-devel/llvm:${LLVM_MAJOR} + test? ( + $(python_gen_any_dep ">=dev-python/lit-${PV}[\${PYTHON_USEDEP}]") + ) +" +PDEPEND=" + >=llvm-core/lld-toolchain-symlinks-16-r2:${LLVM_MAJOR} +" + +LLVM_COMPONENTS=( lld cmake libunwind/include/mach-o ) +llvm.org_set_globals + +python_check_deps() { + python_has_version ">=dev-python/lit-${PV}[${PYTHON_USEDEP}]" +} + +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_prepend_path "${LLVM_MAJOR}" + + # 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) + -DLLVM_ENABLE_ZLIB=FORCE_ON + -DLLVM_ENABLE_ZSTD=$(usex zstd FORCE_ON OFF) + ) + + use test && mycmakeargs+=( + -DLLVM_EXTERNAL_LIT="${EPREFIX}/usr/bin/lit" + -DLLVM_LIT_ARGS="$(get_lit_flags)" + -DPython3_EXECUTABLE="${PYTHON}" + ) + + tc-is-cross-compiler && mycmakeargs+=( + -DLLVM_TABLEGEN_EXE="${BROOT}/usr/lib/llvm/${LLVM_MAJOR}/bin/llvm-tblgen" + ) + + cmake_src_configure +} + +src_test() { + local -x LIT_PRESERVES_TMP=1 + cmake_build check-lld +} diff --git a/llvm-core/lld/lld-19.1.5.ebuild b/llvm-core/lld/lld-19.1.5.ebuild new file mode 100644 index 000000000000..4b6ced38be4c --- /dev/null +++ b/llvm-core/lld/lld-19.1.5.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..13} ) +inherit cmake flag-o-matic llvm.org llvm-utils python-any-r1 toolchain-funcs + +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="~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~arm64-macos ~x64-macos" +IUSE="debug test zstd" +RESTRICT="!test? ( test )" + +DEPEND=" + ~sys-devel/llvm-${PV}[debug=,zstd=] + sys-libs/zlib:= + zstd? ( app-arch/zstd:= ) +" +RDEPEND=" + ${DEPEND} + !llvm-core/lld:0 +" +BDEPEND=" + sys-devel/llvm:${LLVM_MAJOR} + test? ( + $(python_gen_any_dep ">=dev-python/lit-${PV}[\${PYTHON_USEDEP}]") + ) +" +PDEPEND=" + >=llvm-core/lld-toolchain-symlinks-16-r2:${LLVM_MAJOR} +" + +LLVM_COMPONENTS=( lld cmake libunwind/include/mach-o ) +llvm.org_set_globals + +python_check_deps() { + python_has_version ">=dev-python/lit-${PV}[${PYTHON_USEDEP}]" +} + +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_prepend_path "${LLVM_MAJOR}" + + # 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) + -DLLVM_ENABLE_ZLIB=FORCE_ON + -DLLVM_ENABLE_ZSTD=$(usex zstd FORCE_ON OFF) + ) + + use test && mycmakeargs+=( + -DLLVM_EXTERNAL_LIT="${EPREFIX}/usr/bin/lit" + -DLLVM_LIT_ARGS="$(get_lit_flags)" + -DPython3_EXECUTABLE="${PYTHON}" + ) + + tc-is-cross-compiler && mycmakeargs+=( + -DLLVM_TABLEGEN_EXE="${BROOT}/usr/lib/llvm/${LLVM_MAJOR}/bin/llvm-tblgen" + ) + + cmake_src_configure +} + +src_test() { + local -x LIT_PRESERVES_TMP=1 + cmake_build check-lld +} diff --git a/llvm-core/lld/lld-20.0.0.9999.ebuild b/llvm-core/lld/lld-20.0.0.9999.ebuild new file mode 100644 index 000000000000..3843625cc7c7 --- /dev/null +++ b/llvm-core/lld/lld-20.0.0.9999.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..13} ) +inherit cmake flag-o-matic llvm.org llvm-utils python-any-r1 toolchain-funcs + +DESCRIPTION="The LLVM linker (link editor)" +HOMEPAGE="https://llvm.org/" + +LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA" +SLOT="${LLVM_MAJOR}/${LLVM_SOABI}" +IUSE="+debug test zstd" +RESTRICT="!test? ( test )" + +DEPEND=" + ~sys-devel/llvm-${PV}[debug=,zstd=] + sys-libs/zlib:= + zstd? ( app-arch/zstd:= ) +" +RDEPEND=" + ${DEPEND} + !llvm-core/lld:0 +" +BDEPEND=" + sys-devel/llvm:${LLVM_MAJOR} + test? ( + $(python_gen_any_dep ">=dev-python/lit-${PV}[\${PYTHON_USEDEP}]") + ) +" +PDEPEND=" + >=llvm-core/lld-toolchain-symlinks-16-r2:${LLVM_MAJOR} +" + +LLVM_COMPONENTS=( lld cmake libunwind/include/mach-o ) +llvm.org_set_globals + +python_check_deps() { + python_has_version ">=dev-python/lit-${PV}[${PYTHON_USEDEP}]" +} + +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_prepend_path "${LLVM_MAJOR}" + + # 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) + -DLLVM_ENABLE_ZLIB=FORCE_ON + -DLLVM_ENABLE_ZSTD=$(usex zstd FORCE_ON OFF) + ) + + use test && mycmakeargs+=( + -DLLVM_EXTERNAL_LIT="${EPREFIX}/usr/bin/lit" + -DLLVM_LIT_ARGS="$(get_lit_flags)" + -DPython3_EXECUTABLE="${PYTHON}" + ) + + tc-is-cross-compiler && mycmakeargs+=( + -DLLVM_TABLEGEN_EXE="${BROOT}/usr/lib/llvm/${LLVM_MAJOR}/bin/llvm-tblgen" + ) + + cmake_src_configure +} + +src_test() { + local -x LIT_PRESERVES_TMP=1 + cmake_build check-lld +} diff --git a/llvm-core/lld/lld-20.0.0_pre20241207.ebuild b/llvm-core/lld/lld-20.0.0_pre20241207.ebuild new file mode 100644 index 000000000000..3843625cc7c7 --- /dev/null +++ b/llvm-core/lld/lld-20.0.0_pre20241207.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..13} ) +inherit cmake flag-o-matic llvm.org llvm-utils python-any-r1 toolchain-funcs + +DESCRIPTION="The LLVM linker (link editor)" +HOMEPAGE="https://llvm.org/" + +LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA" +SLOT="${LLVM_MAJOR}/${LLVM_SOABI}" +IUSE="+debug test zstd" +RESTRICT="!test? ( test )" + +DEPEND=" + ~sys-devel/llvm-${PV}[debug=,zstd=] + sys-libs/zlib:= + zstd? ( app-arch/zstd:= ) +" +RDEPEND=" + ${DEPEND} + !llvm-core/lld:0 +" +BDEPEND=" + sys-devel/llvm:${LLVM_MAJOR} + test? ( + $(python_gen_any_dep ">=dev-python/lit-${PV}[\${PYTHON_USEDEP}]") + ) +" +PDEPEND=" + >=llvm-core/lld-toolchain-symlinks-16-r2:${LLVM_MAJOR} +" + +LLVM_COMPONENTS=( lld cmake libunwind/include/mach-o ) +llvm.org_set_globals + +python_check_deps() { + python_has_version ">=dev-python/lit-${PV}[${PYTHON_USEDEP}]" +} + +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_prepend_path "${LLVM_MAJOR}" + + # 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) + -DLLVM_ENABLE_ZLIB=FORCE_ON + -DLLVM_ENABLE_ZSTD=$(usex zstd FORCE_ON OFF) + ) + + use test && mycmakeargs+=( + -DLLVM_EXTERNAL_LIT="${EPREFIX}/usr/bin/lit" + -DLLVM_LIT_ARGS="$(get_lit_flags)" + -DPython3_EXECUTABLE="${PYTHON}" + ) + + tc-is-cross-compiler && mycmakeargs+=( + -DLLVM_TABLEGEN_EXE="${BROOT}/usr/lib/llvm/${LLVM_MAJOR}/bin/llvm-tblgen" + ) + + cmake_src_configure +} + +src_test() { + local -x LIT_PRESERVES_TMP=1 + cmake_build check-lld +} diff --git a/llvm-core/lld/metadata.xml b/llvm-core/lld/metadata.xml new file mode 100644 index 000000000000..072910296ca3 --- /dev/null +++ b/llvm-core/lld/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>llvm@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="github">llvm/llvm-project</remote-id> + </upstream> +</pkgmetadata> diff --git a/llvm-core/lldb/lldb-15.0.7.ebuild b/llvm-core/lldb/lldb-15.0.7.ebuild index 47928173b967..49191a28a90d 100644 --- a/llvm-core/lldb/lldb-15.0.7.ebuild +++ b/llvm-core/lldb/lldb-15.0.7.ebuild @@ -46,7 +46,7 @@ BDEPEND=" ~dev-python/lit-${PV}[\${PYTHON_USEDEP}] dev-python/psutil[\${PYTHON_USEDEP}] ") - sys-devel/lld + llvm-core/lld ) " diff --git a/llvm-core/lldb/lldb-16.0.6-r1.ebuild b/llvm-core/lldb/lldb-16.0.6-r1.ebuild index f55aa822e30e..8fae078130fc 100644 --- a/llvm-core/lldb/lldb-16.0.6-r1.ebuild +++ b/llvm-core/lldb/lldb-16.0.6-r1.ebuild @@ -40,7 +40,7 @@ BDEPEND=" ~dev-python/lit-${PV}[\${PYTHON_USEDEP}] dev-python/psutil[\${PYTHON_USEDEP}] ") - sys-devel/lld + llvm-core/lld ) " diff --git a/llvm-core/lldb/lldb-17.0.6.ebuild b/llvm-core/lldb/lldb-17.0.6.ebuild index 4a33daac6be6..831a1161214b 100644 --- a/llvm-core/lldb/lldb-17.0.6.ebuild +++ b/llvm-core/lldb/lldb-17.0.6.ebuild @@ -46,7 +46,7 @@ BDEPEND=" ~dev-python/lit-${PV}[\${PYTHON_USEDEP}] dev-python/psutil[\${PYTHON_USEDEP}] ") - sys-devel/lld + llvm-core/lld ) " diff --git a/llvm-core/lldb/lldb-18.1.8.ebuild b/llvm-core/lldb/lldb-18.1.8.ebuild index 4e1216026ad1..9e9a4f16db6f 100644 --- a/llvm-core/lldb/lldb-18.1.8.ebuild +++ b/llvm-core/lldb/lldb-18.1.8.ebuild @@ -44,7 +44,7 @@ BDEPEND=" ~dev-python/lit-${PV}[\${PYTHON_USEDEP}] dev-python/psutil[\${PYTHON_USEDEP}] ") - sys-devel/lld + llvm-core/lld ) " diff --git a/llvm-core/lldb/lldb-19.1.4.ebuild b/llvm-core/lldb/lldb-19.1.4.ebuild index 4c1a36a5e852..75ee3c7696c3 100644 --- a/llvm-core/lldb/lldb-19.1.4.ebuild +++ b/llvm-core/lldb/lldb-19.1.4.ebuild @@ -44,7 +44,7 @@ BDEPEND=" ~dev-python/lit-${PV}[\${PYTHON_USEDEP}] dev-python/psutil[\${PYTHON_USEDEP}] ") - sys-devel/lld + llvm-core/lld ) " diff --git a/llvm-core/lldb/lldb-19.1.5.ebuild b/llvm-core/lldb/lldb-19.1.5.ebuild index 25dad15a4efa..3c61182ccb2f 100644 --- a/llvm-core/lldb/lldb-19.1.5.ebuild +++ b/llvm-core/lldb/lldb-19.1.5.ebuild @@ -44,7 +44,7 @@ BDEPEND=" ~dev-python/lit-${PV}[\${PYTHON_USEDEP}] dev-python/psutil[\${PYTHON_USEDEP}] ") - sys-devel/lld + llvm-core/lld ) " diff --git a/llvm-core/lldb/lldb-20.0.0.9999.ebuild b/llvm-core/lldb/lldb-20.0.0.9999.ebuild index c73188f73913..4b8f0e7c8054 100644 --- a/llvm-core/lldb/lldb-20.0.0.9999.ebuild +++ b/llvm-core/lldb/lldb-20.0.0.9999.ebuild @@ -43,7 +43,7 @@ BDEPEND=" ~dev-python/lit-${PV}[\${PYTHON_USEDEP}] dev-python/psutil[\${PYTHON_USEDEP}] ") - sys-devel/lld + llvm-core/lld ) " diff --git a/llvm-core/lldb/lldb-20.0.0_pre20241207.ebuild b/llvm-core/lldb/lldb-20.0.0_pre20241207.ebuild index c73188f73913..4b8f0e7c8054 100644 --- a/llvm-core/lldb/lldb-20.0.0_pre20241207.ebuild +++ b/llvm-core/lldb/lldb-20.0.0_pre20241207.ebuild @@ -43,7 +43,7 @@ BDEPEND=" ~dev-python/lit-${PV}[\${PYTHON_USEDEP}] dev-python/psutil[\${PYTHON_USEDEP}] ") - sys-devel/lld + llvm-core/lld ) " |