Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/llvm/
Date: Sun, 03 Jul 2016 08:19:29
Message-Id: 1467533947.7e88be51d33474f705aad33812d1368373f5bf7b.mgorny@gentoo
1 commit: 7e88be51d33474f705aad33812d1368373f5bf7b
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 3 07:34:43 2016 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 3 08:19:07 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e88be51
7
8 sys-devel/llvm: Improve cross-compiler support, #442958
9
10 sys-devel/llvm/llvm-3.8.0-r3.ebuild | 17 +++++++++++++++++
11 sys-devel/llvm/llvm-9999.ebuild | 17 +++++++++++++++++
12 2 files changed, 34 insertions(+)
13
14 diff --git a/sys-devel/llvm/llvm-3.8.0-r3.ebuild b/sys-devel/llvm/llvm-3.8.0-r3.ebuild
15 index 31be20b..98b01a8 100644
16 --- a/sys-devel/llvm/llvm-3.8.0-r3.ebuild
17 +++ b/sys-devel/llvm/llvm-3.8.0-r3.ebuild
18 @@ -368,6 +368,23 @@ multilib_src_configure() {
19 #filter-flags -msahf -frecord-gcc-switches
20 fi
21
22 + if tc-is-cross-compiler; then
23 + [[ -x "/usr/bin/llvm-tblgen" ]] \
24 + || die "/usr/bin/llvm-tblgen not found or usable"
25 + mycmakeargs+=(
26 + -DCMAKE_CROSSCOMPILING=ON
27 + -DLLVM_TABLEGEN=/usr/bin/llvm-tblgen
28 + )
29 +
30 + if use clang; then
31 + [[ -x "/usr/bin/clang-tblgen" ]] \
32 + || die "/usr/bin/clang-tblgen not found or usable"
33 + mycmakeargs+=(
34 + -DCLANG_TABLEGEN=/usr/bin/clang-tblgen
35 + )
36 + fi
37 + fi
38 +
39 cmake-utils_src_configure
40 }
41
42
43 diff --git a/sys-devel/llvm/llvm-9999.ebuild b/sys-devel/llvm/llvm-9999.ebuild
44 index 745d373..cb77817 100644
45 --- a/sys-devel/llvm/llvm-9999.ebuild
46 +++ b/sys-devel/llvm/llvm-9999.ebuild
47 @@ -343,6 +343,23 @@ multilib_src_configure() {
48 #filter-flags -msahf -frecord-gcc-switches
49 fi
50
51 + if tc-is-cross-compiler; then
52 + [[ -x "/usr/bin/llvm-tblgen" ]] \
53 + || die "/usr/bin/llvm-tblgen not found or usable"
54 + mycmakeargs+=(
55 + -DCMAKE_CROSSCOMPILING=ON
56 + -DLLVM_TABLEGEN=/usr/bin/llvm-tblgen
57 + )
58 +
59 + if use clang; then
60 + [[ -x "/usr/bin/clang-tblgen" ]] \
61 + || die "/usr/bin/clang-tblgen not found or usable"
62 + mycmakeargs+=(
63 + -DCLANG_TABLEGEN=/usr/bin/clang-tblgen
64 + )
65 + fi
66 + fi
67 +
68 cmake-utils_src_configure
69 }