Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: chewi@g.o, "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH 0/4] llvm.eclass: EAPI 7 support
Date: Tue, 30 Apr 2019 05:39:12
Message-Id: 20190430053858.10208-1-mgorny@gentoo.org
1 Hi,
2
3 Here's my proposed EAPI 7 support for llvm.eclass. I think it should
4 conceptually work with cross but I haven't tested it. The main problem
5 is that we have multiple distinct ways of building LLVM, and AFAIU
6 when using CMake modules, you should be able to get away without having
7 LLVM in CBUILD. However, when using llvm-config you obviously need
8 it CBUILD-executable.
9
10 To support both scenarios, get_llvm_prefix is now provided with '-b'
11 and '-d' options (matching those to has_version). Using them, you can
12 choose the behavior suitable for your package.
13
14 I've left the default at '-d'. I don't really know which is better
15 for the generic cross case but either way should work for non-cross
16 setups.
17
18 --
19 Best regards,
20 Michał Górny
21
22 Michał Górny (4):
23 llvm.eclass: Remove unnecessary '_rc' from < example
24 llvm.eclass: Update examples for newer LLVM versions
25 llvm.eclass: Add EAPI 7 API to get_llvm_prefix
26 llvm.eclass: Enable EAPI 7
27
28 eclass/llvm.eclass | 65 +++++++++++++++++++++++++++++++++++++---------
29 1 file changed, 53 insertions(+), 12 deletions(-)
30
31 --
32 2.21.0

Replies