1 |
Please review the inlined news item. I'd like to publish it when |
2 |
LLVM-3.9 is unmasked. |
3 |
|
4 |
-- |
5 |
|
6 |
Title: LLVM 3.9 with LLVM_TARGETS |
7 |
Author: Michał Górny <mgorny@g.o> |
8 |
Content-Type: text/plain |
9 |
Posted: 2016-..-.. |
10 |
Revision: 1 |
11 |
News-Item-Format: 1.0 |
12 |
Display-If-Installed: <sys-devel/llvm-3.9 |
13 |
|
14 |
The newest release of LLVM 3.9 has undergone major Gentoo changes, |
15 |
and may require explicit action prior to the upgrade. In this release, |
16 |
the semi-implicit target choice has been replaced with an explicit |
17 |
LLVM_TARGETS flag set. |
18 |
|
19 |
If you did not enable USE=multitarget, no action should be required. |
20 |
The targets for your host CPU, Berkeley Packet Filter (used by some |
21 |
packages) and possibly two major GPUs (AMDGPU and NVPTX) will be enabled |
22 |
by default which is a superset of the previous default. However, you may |
23 |
want to disable some of those targets if you do not intend to install |
24 |
packages requiring them (dev-util/bcc, dev-libs/libclc). |
25 |
|
26 |
If you enabled USE=multitarget, you will now need to specify all |
27 |
the requested targets explicitly. The old flag will be preserved |
28 |
for some time for compatibility reasons; however, it will only enforce |
29 |
explicitly selecting all targets. |
30 |
|
31 |
In order to enable all targets, add the following to your |
32 |
/etc/portage/package.use or equivalent file: |
33 |
|
34 |
sys-devel/llvm LLVM_TARGETS: * |
35 |
sys-devel/clang LLVM_TARGETS: * |
36 |
|
37 |
If you had to use USE=multitarget to enable some of the targets you |
38 |
needed, you can now disable the flag and specify those targets |
39 |
explicitly. |
40 |
|
41 |
Please also note that starting with LLVM-4.0, sys-devel/clang will be |
42 |
built as a separate package and the enabled LLVM_TARGETS for that |
43 |
package will actually enforce requested targets. |
44 |
|
45 |
Setting LLVM_TARGETS globally is discouraged as it can cause bootstrap |
46 |
issues with sys-libs/compiler-rt in the future. |
47 |
|
48 |
|
49 |
-- |
50 |
Best regards, |
51 |
Michał Górny |
52 |
<http://dev.gentoo.org/~mgorny/> |