Consider splitting the library and compiler parts like llvm
Task Info (Flyspray) | |
---|---|
Opened By | Emil (xexaxo) |
Task ID | 72588 |
Type | Bug Report |
Project | Arch Linux |
Category | Packages: Extra |
Version | None |
OS | All |
Opened | 2021-10-30 18:45:52 UTC |
Status | Assigned |
Assignee | Evangelos Foutras (foutrelis) |
Details
Description:
Currently the clang package provides both the compiler toolchain and backend libraries.
If we have a OpenCL workload - we would install opencl-mesa or intel-opencl-clang. Either of them pulls the complete clang and all its dependencies - compiler-rt, gcc and binutils et al. Which is just wasteful, since we don't need neither the clang frontend nor gcc and friends.
Thus instead of having ~80 MiB libclang libraries, we get 400 MiB of packages.
Please consider splitting the clang compiler toolchain and libraries into separate packages. Just like we have llvm and llvm-libs.
Additional info:
- package version(s) - clang 12.0.1-1
Steps to reproduce:
- get a simple Arch install, lacking any base-devel pkgs
- pacman -S mesa - install overall mesa driver-set
- pacman -S opencl-mesa - observe compiler-rt, gcc and binutils being pulled
- manually remove said packages, remove all of clang but /usr/lib/libclang*
- opencl drivers work \o/