app-i18n/fcitx: fix compiling with libc++

std::syncstream used in fcitx/fcitx5#1382 is still marked as experimental in libc++.

Closes: https://github.com/gentoo/gentoo/pull/44368
Signed-off-by: Daichi Yamamoto <dev@dyama.net>
Signed-off-by: Yixun Lan <dlan@gentoo.org>
This commit is contained in:
Daichi Yamamoto
2025-10-29 07:04:36 +09:00
committed by Yixun Lan
parent d949e8981f
commit 821402ed1a

View File

@@ -5,7 +5,7 @@ EAPI=8
MY_PN="fcitx5"
inherit cmake unpacker xdg
inherit cmake flag-o-matic toolchain-funcs unpacker xdg
DESCRIPTION="Fcitx 5 is a generic input method framework"
HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx5"
@@ -75,6 +75,11 @@ BDEPEND="
"
src_configure() {
if [[ $(tc-get-cxx-stdlib) == "libc++" ]]; then
# std::osyncstream used in fcitx-utils/log.cpp is marked as experimental.
append-cxxflags $(test-flags-CXX -fexperimental-library)
fi
local mycmakeargs=(
-DENABLE_DBUS=on
-DENABLE_XDGAUTOSTART=$(usex autostart)