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