commit: 2f6ecd1673ab9d8772fbbfc0631b5f5e2b5f882d Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Tue Apr 15 10:04:55 2025 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Tue Apr 15 10:15:42 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f6ecd16
llvm-runtimes/flang-rt: Add 21.0.0_pre20250415 snapshot Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> llvm-runtimes/flang-rt/Manifest | 1 + .../flang-rt/flang-rt-21.0.0_pre20250415.ebuild | 64 ++++++++++++++++++++++ 2 files changed, 65 insertions(+) diff --git a/llvm-runtimes/flang-rt/Manifest b/llvm-runtimes/flang-rt/Manifest index 4b9c819f904a..4b78a234a4a3 100644 --- a/llvm-runtimes/flang-rt/Manifest +++ b/llvm-runtimes/flang-rt/Manifest @@ -1 +1,2 @@ +DIST llvm-project-1cf9f764ac41fb3492e10c78640dd50e616388db.tar.gz 230651433 BLAKE2B b71d459de99a741f9eb5809fcb44e6d9a17d3295bf11755d2b04a83fff6257eb4e5856826581c000e3b2868ff1cfb155ee18c692654f8083af04574d414c8fa2 SHA512 5b8d1e493830b7838b3ca76148dfc2e2af1cbaa660bd80958777698210c3347a1308f0725d40b10f8f12877daf99c4ba4837e4fa857a781ae912ee167369bafd DIST llvm-project-f3e6473df46fd920e09e06e57a5549eb8e3a8bd3.tar.gz 229893133 BLAKE2B 20a14a99fb55070c30b05298916875d7f7b5476bc47c72f675204adb62daf1126bc83f2e7e51867042cb0ea415f04ef32653118116d01f666a82dc888fb6e999 SHA512 f11eac15fc1d96232267d588fa1c41ebbff3367b1fccf1cfd43f3290f682b73ffa78f2336a2a155c41ef67cf4e6f43019b152996d790f03acf4b9b732a3cf4b7 diff --git a/llvm-runtimes/flang-rt/flang-rt-21.0.0_pre20250415.ebuild b/llvm-runtimes/flang-rt/flang-rt-21.0.0_pre20250415.ebuild new file mode 100644 index 000000000000..f8d5699c2667 --- /dev/null +++ b/llvm-runtimes/flang-rt/flang-rt-21.0.0_pre20250415.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake flag-o-matic llvm.org + +DESCRIPTION="LLVM's Fortran runtime" +HOMEPAGE="https://flang.llvm.org/" + +LICENSE="Apache-2.0-with-LLVM-exceptions" +SLOT="${LLVM_MAJOR}" +IUSE="+debug test" +RESTRICT="!test? ( test )" + +RDEPEND=" + !<llvm-core/flang-21.0.0_pre20250221-r1 +" +BDEPEND=" + llvm-core/llvm:${LLVM_MAJOR} + llvm-core/flang + test? ( + dev-python/lit + ) +" + +LLVM_COMPONENTS=( + runtimes flang-rt cmake flang llvm/{cmake,utils/llvm-lit} +) +llvm.org_set_globals + +src_configure() { + # the code is not portable + local -x FC=flang F77=flang + strip-unsupported-flags + + local mycmakeargs=( + # we may not have a runtime yet + -DCMAKE_Fortran_COMPILER_WORKS=TRUE + + -DLLVM_ENABLE_RUNTIMES="flang-rt" + # this package forces NO_DEFAULT_PATHS + -DLLVM_BINARY_DIR="${ESYSROOT}/usr/lib/llvm/${LLVM_MAJOR}" + # set correct install paths + -DFLANG_RT_INSTALL_RESOURCE_PATH="/usr/lib/clang/${LLVM_MAJOR}" + -DLLVM_DEFAULT_TARGET_TRIPLE="${CHOST}" + + -DFLANG_RT_INCLUDE_TESTS=$(usex test) + ) + use test && mycmakeargs+=( + -DLLVM_EXTERNAL_LIT="${EPREFIX}/usr/bin/lit" + -DLLVM_LIT_ARGS="$(get_lit_flags)" + ) + + # LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844 + use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG" + cmake_src_configure +} + +src_test() { + # respect TMPDIR! + local -x LIT_PRESERVES_TMP=1 + cmake_build check-flang-rt +}
