build: Fix find NDK

This commit is contained in:
世界 2024-10-11 21:46:42 +08:00
parent e55723d84d
commit 82ab68b542
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4

View File

@ -86,7 +86,7 @@ func findNDK() bool {
})
for _, versionName := range versionNames {
currentNDKPath := filepath.Join(androidSDKPath, "ndk", versionName)
if rw.IsFile(filepath.Join(androidSDKPath, versionFile)) {
if rw.IsFile(filepath.Join(currentNDKPath, versionFile)) {
androidNDKPath = currentNDKPath
log.Warn("reproducibility warning: using NDK version " + versionName + " instead of " + fixedVersion)
return true