summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaikari <[email protected]>2026-01-17 05:21:20 +0300
committerSaikari <[email protected]>2026-01-17 05:21:20 +0300
commit453362a7fd5df7e83bd7d33c9c9254edae7619b9 (patch)
tree108beaa3497e95af655977837c9cc776e7663c0d
parent6be7cace6bf07c2f428ba1c42ab5e417e7243a11 (diff)
feat: add support for fetching utf8proc compiler and linker flags
-rwxr-xr-xcore/xmake.sh11
1 files changed, 11 insertions, 0 deletions
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"