Skip to content

Commit 70dded9

Browse files
committed
Add an error message if android NDK is not installed
1 parent 1c19d62 commit 70dded9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tools/android.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ def generate(env):
6464
elif sys.platform == "darwin":
6565
toolchain += "darwin-x86_64"
6666
env.Append(LINKFLAGS=["-shared"])
67+
68+
if not os.path.exists(toolchain):
69+
print("ERROR: Could not find NDK toolchain at " + toolchain + ".")
70+
print("Make sure NDK version " + get_ndk_version() + " is installed.")
71+
env.Exit(1)
72+
6773
env.PrependENVPath("PATH", toolchain + "/bin") # This does nothing half of the time, but we'll put it here anyways
6874

6975
# Get architecture info

0 commit comments

Comments
 (0)