From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: llvm-core/flang/
Date: Mon, 17 Feb 2025 20:47:17 +0000 (UTC) [thread overview]
Message-ID: <1739825230.8672cd4d8095d55cee13f5750a76bc3d59bf12f9.mgorny@gentoo> (raw)
commit: 8672cd4d8095d55cee13f5750a76bc3d59bf12f9
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Feb 17 20:28:56 2025 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Feb 17 20:47:10 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8672cd4d
llvm-core/flang: Add 21.0.0_pre20250215 snapshot
Closes: https://bugs.gentoo.org/748087
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
llvm-core/flang/Manifest | 1 +
llvm-core/flang/flang-21.0.0_pre20250215.ebuild | 72 +++++++++++++++++++++++++
2 files changed, 73 insertions(+)
diff --git a/llvm-core/flang/Manifest b/llvm-core/flang/Manifest
new file mode 100644
index 000000000000..5401c2124484
--- /dev/null
+++ b/llvm-core/flang/Manifest
@@ -0,0 +1 @@
+DIST llvm-project-c30a7f459452d5766da244564bc1d5888346c364.tar.gz 227560986 BLAKE2B c1c833aa6d488530826d96db81ca8be2fcf842ccf5b10a65ff18269fdfa32fa2742fb0a547eb315c2a9ee383e1b6b6cce4a78136e1740e04d322c79fb6a66a86 SHA512 0b68d3462e5eac89f50cff5e64603758ab74c701ff2de88c8569dd45b7e702b5d13b26c2745615c0c355d46d13765f47e4d43e61cde735240c6f386c0090becb
diff --git a/llvm-core/flang/flang-21.0.0_pre20250215.ebuild b/llvm-core/flang/flang-21.0.0_pre20250215.ebuild
new file mode 100644
index 000000000000..c6107fb5c347
--- /dev/null
+++ b/llvm-core/flang/flang-21.0.0_pre20250215.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake llvm.org
+
+DESCRIPTION="LLVM's Fortran frontend"
+HOMEPAGE="https://flang.llvm.org/"
+
+LICENSE="Apache-2.0-with-LLVM-exceptions"
+SLOT="${LLVM_MAJOR}/${LLVM_SOABI}"
+IUSE="+debug test"
+RESTRICT="!test? ( test )"
+
+DEPEND="
+ ~llvm-core/clang-${PV}[debug=]
+ ~llvm-core/llvm-${PV}[debug=]
+ ~llvm-core/mlir-${PV}[debug=]
+"
+RDEPEND="
+ ${DEPEND}
+"
+BDEPEND="
+ test? (
+ dev-python/lit
+ )
+"
+
+LLVM_COMPONENTS=( flang cmake )
+LLVM_TEST_COMPONENTS=( clang/test/Driver mlir/test/lib )
+llvm.org_set_globals
+
+src_configure() {
+ local mycmakeargs=(
+ -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr/lib/llvm/${LLVM_MAJOR}"
+
+ -DLLVM_ROOT="${ESYSROOT}/usr/lib/llvm/${LLVM_MAJOR}"
+ -DCLANG_RESOURCE_DIR="../../../clang/${LLVM_MAJOR}"
+
+ -DBUILD_SHARED_LIBS=OFF
+ -DMLIR_LINK_MLIR_DYLIB=ON
+ # flang does not feature a dylib, so do not install libraries
+ # or headers
+ -DLLVM_INSTALL_TOOLCHAIN_ONLY=ON
+
+ # TODO: always enable to obtain reproducible tools
+ -DFLANG_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
+}
+
+src_install() {
+ cmake_src_install
+
+ # move the runtime into 'lib' (sigh), until upstream resolves
+ # libdir support: https://github.com/llvm/llvm-project/issues/127538
+ mv "${ED}/usr/lib/llvm/${LLVM_MAJOR}"/{$(get_libdir),lib} || die
+}
next reply other threads:[~2025-02-17 20:47 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-17 20:47 Michał Górny [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-04-05 12:24 [gentoo-commits] repo/gentoo:master commit in: llvm-core/flang/ Michał Górny
2025-03-29 10:27 Michał Górny
2025-03-22 10:43 Michał Górny
2025-03-17 20:13 Michał Górny
2025-03-16 17:41 Michał Górny
2025-03-11 14:56 Michał Górny
2025-03-05 10:39 Michał Górny
2025-03-01 12:58 Michał Górny
2025-03-01 8:34 Michał Górny
2025-02-25 14:03 Michał Górny
2025-02-25 8:51 Michał Górny
2025-02-24 14:14 Michał Górny
2025-02-22 15:19 Michał Górny
2025-02-21 18:17 Michał Górny
2025-02-17 20:47 Michał Górny
2025-02-16 2:37 Michał Górny
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1739825230.8672cd4d8095d55cee13f5750a76bc3d59bf12f9.mgorny@gentoo \
--to=mgorny@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox