瀏覽代碼

build: Fix find NDK

世界 1 年之前
父節點
當前提交
82ab68b542
共有 1 個文件被更改,包括 1 次插入1 次删除
  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