Skip to content

Commit

Permalink
media-gfx/ueberzugpp: improve libc++ check
Browse files Browse the repository at this point in the history
Hadn't noticed we had a function for this, and had just went for a
heuristic check (not that the check was important given test-flags-CXX
would skip the option if unusable).

Signed-off-by: Ionen Wolkens <[email protected]>
  • Loading branch information
ionenwks committed Aug 19, 2024
1 parent 560f0b4 commit 5e322df
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions media-gfx/ueberzugpp/ueberzugpp-2.9.6.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,9 @@ BDEPEND="
"

src_configure() {
if use X && tc-is-clang && has_version sys-libs/libcxx; then
if use X && [[ $(tc-get-cxx-stdlib) == libc++ ]]; then
# X support makes use of C++20's std::jthread which is currently
# marked experimental (at least) in <=libcxx-18 (should limit
# version in above libcxx check whenever this becomes unnecessary)
# marked experimental (at least) in <=libcxx-18
append-cxxflags $(test-flags-CXX -fexperimental-library)
fi

Expand Down

0 comments on commit 5e322df

Please sign in to comment.