diff options
Diffstat (limited to 'core')
| -rwxr-xr-x | core/xmake.sh | 11 |
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" |
