Merge "Fix a check for the ninja_log" into main

This commit is contained in:
Treehugger Robot
2024-05-13 20:20:04 +00:00
committed by Gerrit Code Review

View File

@@ -108,7 +108,7 @@ func needToWriteNinjaHint(ctx *android.Context) bool {
case "always": case "always":
return true return true
case "depend": case "depend":
if _, err := os.Stat(filepath.Join(ctx.Config().OutDir(), ".ninja_log")); errors.Is(err, os.ErrNotExist) { if _, err := os.Stat(filepath.Join(topDir, ctx.Config().OutDir(), ".ninja_log")); errors.Is(err, os.ErrNotExist) {
return true return true
} }
} }