fix(scripts/build): ninja: unknown warning flag 'dupbuild=warn'

ninja has removed the flag `-w dupbuild=warn` since 8f47d5aa33.
This commit is contained in:
tqfx 2024-04-19 19:53:16 +08:00 committed by Jia Yuan Lo
parent 80e50f61cc
commit d07e7a2106
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ termux_step_make() {
fi
if test -f build.ninja; then
ninja -w dupbuild=warn -j $TERMUX_MAKE_PROCESSES
ninja -j $TERMUX_MAKE_PROCESSES
elif ls ./*.cabal &>/dev/null; then
cabal build
elif ls ./*akefile &>/dev/null || [ ! -z "$TERMUX_PKG_EXTRA_MAKE_ARGS" ]; then

View File

@ -3,7 +3,7 @@ termux_step_make_install() {
[ "$TERMUX_PKG_METAPACKAGE" = "true" ] && return
if test -f build.ninja; then
ninja -w dupbuild=warn -j $TERMUX_MAKE_PROCESSES install
ninja -j $TERMUX_MAKE_PROCESSES install
elif test -f setup.py || test -f pyproject.toml || test -f setup.cfg; then
pip install --no-deps . --prefix $TERMUX_PREFIX
elif ls ./*.cabal &>/dev/null; then