From 453362a7fd5df7e83bd7d33c9c9254edae7619b9 Mon Sep 17 00:00:00 2001 From: Saikari Date: Sat, 17 Jan 2026 05:21:20 +0300 Subject: feat: add support for fetching utf8proc compiler and linker flags --- core/xmake.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/core/xmake.sh b/core/xmake.sh index 28ef1d94a..e89547d74 100755 --- a/core/xmake.sh +++ b/core/xmake.sh @@ -18,6 +18,17 @@ if is_plat "solaris"; then add_defines "_XOPEN_SOURCE=600" fi +if [ -f "scripts/xrepo.sh" ]; then + xrepo_cflags=$(bash scripts/xrepo.sh fetch --cflags utf8proc 2>/dev/null) + xrepo_ldflags=$(bash scripts/xrepo.sh fetch --ldflags utf8proc 2>/dev/null) + if [ -n "$xrepo_cflags" ]; then + add_cxflags "${xrepo_cflags}" + fi + if [ -n "$xrepo_ldflags" ]; then + add_ldflags "${xrepo_ldflags}" + fi +fi + # disable some compiler errors if is_plat "macosx"; then add_cxflags "-Wno-error=deprecated-declarations" "-fno-strict-aliasing" "-Wno-error=nullability-completeness" "-Wno-error=parentheses-equality" -- cgit v1.3.1