build: fix Linux Android SDK fallback path (#13705)

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.
This commit is contained in:
Mitchell Hashimoto
2026-08-09 08:04:28 -07:00
committed by GitHub

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,
},
},