build: fix Linux Android SDK fallback path

Use the standard ~/Android/Sdk capitalization for the Linux SDK fallback.

This lets NDK discovery work when neither ANDROID_NDK_HOME nor an SDK
environment variable is set.

Signed-off-by: Fredrik Fornwall <fredrik@fornwall.net>
This commit is contained in:
Fredrik Fornwall
2026-08-09 05:32:29 +02:00
parent f64f4aca2c
commit 16e13a59ae

View File

@@ -143,9 +143,8 @@ fn findNDKPath(b: *std.Build) ?[]const u8 {
&.{
home,
switch (builtin.os.tag) {
.linux => "Android/sdk",
.linux, .windows => "Android/Sdk",
.macos => "Library/Android/Sdk",
.windows => "Android/Sdk",
else => return null,
},
},