Skip to content

Commit

Permalink
Abort if NDK_PLATFORM is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
jedisct1 committed Feb 20, 2025
1 parent b4f1449 commit c01ba04
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dist-build/android-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ fi
--prefix="${PREFIX}" \
--with-sysroot="${TOOLCHAIN_DIR}/sysroot" || exit 1

if [ -z "$NDK_PLATFORM" ]; then
echo "Aborting"
exit 1
fi
if [ "$NDK_PLATFORM" != "$NDK_PLATFORM_COMPAT" ]; then
grep -E '^#define ' config.log | sort -u >config-def-compat.log
echo
Expand Down

0 comments on commit c01ba04

Please sign in to comment.