Explorar o código

build: Fix find NDK

世界 hai 1 ano
pai
achega
82ab68b542
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      cmd/internal/build_shared/sdk.go

+ 1 - 1
cmd/internal/build_shared/sdk.go

@@ -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