diff options
author | Michal Rostecki <vadorovsky@protonmail.com> | 2024-11-10 13:06:29 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-11-10 18:42:41 +0100 |
commit | 066df5677a706878b18665db183c72bac6302030 (patch) | |
tree | f559202e230fa8f5fb33594dfc3e401c96e46483 /sys-libs/compiler-rt/metadata.xml | |
parent | app-shells/nushell: drop 0.95.0 (diff) | |
download | gentoo-066df5677a706878b18665db183c72bac6302030.tar.gz gentoo-066df5677a706878b18665db183c72bac6302030.tar.bz2 gentoo-066df5677a706878b18665db183c72bac6302030.zip |
sys-libs/compiler-rt: Provide `atomic-builtins` IUSE flag
Atomic builtins fail to build with GCC. Furthermore, they are not needed
on systems with GCC, because libatomic can be used on them. Atomic
builtins are mostly useful on LLVM-based systems.
Guard them behind the `atomic-builtins` IUSE flag. That flag depends on
`clang`.
Bug: https://bugs.gentoo.org/943129
Signed-off-by: Michal Rostecki <vadorovsky@protonmail.com>
Closes: https://github.com/gentoo/gentoo/pull/39260
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-libs/compiler-rt/metadata.xml')
-rw-r--r-- | sys-libs/compiler-rt/metadata.xml | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sys-libs/compiler-rt/metadata.xml b/sys-libs/compiler-rt/metadata.xml index 1167201f29f0..efc089d5845f 100644 --- a/sys-libs/compiler-rt/metadata.xml +++ b/sys-libs/compiler-rt/metadata.xml @@ -5,8 +5,15 @@ <email>llvm@gentoo.org</email> </maintainer> <use> - <flag name="clang">Force building using installed clang (rather - than the default CC/CXX).</flag> + <flag name="atomic-builtins"> + Compile atomic builtins into compiler-rt.builtins. This is + needed on systems without GCC/libatomic, but requires using + Clang to build. + </flag> + <flag name="clang"> + Force building using installed clang (rather than + the default CC/CXX). + </flag> </use> <upstream> <remote-id type="github">llvm/llvm-project</remote-id> |