From c9a6f4c1200853ee830aca868516cfe9a657d666 Mon Sep 17 00:00:00 2001 From: Tobiasz Laskowski Date: Wed, 17 Dec 2025 19:39:34 +0000 Subject: [PATCH] [tools] Add check for invalid ANDROID_NDK_ROOT --- tools/hxcpp/Setup.hx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/hxcpp/Setup.hx b/tools/hxcpp/Setup.hx index ba8279687..82346ddc5 100644 --- a/tools/hxcpp/Setup.hx +++ b/tools/hxcpp/Setup.hx @@ -434,6 +434,14 @@ class Setup else { root = defines.get("ANDROID_NDK_ROOT"); + + if (!FileSystem.exists(root)) { + Log.error('ANDROID_NDK_ROOT ["$root"] directory does not exist'); + } + if (!FileSystem.isDirectory(root)) { + Log.error('ANDROID_NDK_ROOT ["$root"] is not a diretory'); + } + Log.setup("\x1b[33;1mUsing Android NDK root: " + root + "\x1b[0m"); }