Talk:Clang
Setup compiler in PKGBUILD or libmakepkg
First, in the section "Build packages with Clang" I'd like to note packagers can set up non-standard compilers in the PKGBUILD
s of their packages (packagers may override CC, CXX, etc in PKGBUILD
).
This got me thinking. Another approach could be to use the libmakepkg module buildenv for specifying the compiler and filtering incompatible flags. This would further allow the pacman devs to issue supported flags for compilers other than gcc.
The latter solution is more difficult, and might warrant a discussion on the pacman-dev mailing list, but is also superior.
If it could be made to work, packagers could add just options+=(clang)
(or perhaps compiler=(clang)
) to their packages and end users could be blissfully unaware. quequotion (talk) 04:07, 4 July 2019 (UTC)
- That said, as far as I know this applies to one package (I've been told mesa should be built with clang); one compiler (not sure if other compilers are more or less compatible with gcc flags than clang) and one flag shipped with pacman (
debug
's-fvar-tracking-assignments
); so no rush. quequotion (talk) 03:20, 6 July 2019 (UTC)