FS#52021 - [llvm] Cut down the number of supported targets

Attached to Project: Arch Linux
Opened by Emil (xexaxo) - Thursday, 01 December 2016, 19:30 GMT
Last edited by Evangelos Foutras (foutrelis) - Monday, 20 March 2017, 05:40 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Evangelos Foutras (foutrelis)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

At the moment the llvm (3.9.0-3) package provides the following targets:

$ llvm-config --targets-built
AArch64 AMDGPU ARM BPF Hexagon Mips MSP430 NVPTX PowerPC Sparc SystemZ X86 XCore

Of which only the following can be used, in the said scenarios:
- X86 - Arch is a x86 distro ;-)
- AMDGPU - AMDGPU Mesa drivers
- NVPTX - CUDA
- BPF - Berkeley Packet Filter, used by ?


Should we have the first three/four from above ? Adding the following to cmake should do it:
-DLLVM_TARGETS_TO_BUILD="X86;AMDGPU;...;NVPTX"


Bonus: this will make the build times noticeably shorter and the package(s) smaller :-)

Example (sizes are in MiB)
- official build: 3.9.0-3
- local build: 3.9.0-1 build with AMDGPU,X86,BPF


| official | local |
---------------------------------
llvm | 132.6 | 95.1 |
llvm-libs | 47.4 | 31.7 |
This task depends upon

Closed by  Evangelos Foutras (foutrelis)
Monday, 20 March 2017, 05:40 GMT
Reason for closing:  Won't implement
Additional comments about closing:  Seems beneficial to keep them.
Comment by Chris Kitching (ckitching) - Monday, 20 March 2017, 05:22 GMT
The compiler is used for more than just compiling Arch Linux.

These targets are useful to people (like me!) who want to cross-compile software to those platforms.

Loading...