Reject persisted failures during precompile
This commit is contained in:
@@ -1447,7 +1447,7 @@ void compiler_untrack_known_unit(Request* context, String file_name)
|
||||
});
|
||||
}
|
||||
|
||||
bool compiler_unit_needs_recompile(Request* context, String file_name, bool* source_missing, bool allow_recent_source_stat, bool path_is_normalized)
|
||||
bool compiler_unit_needs_recompile(Request* context, String file_name, bool* source_missing, bool allow_recent_source_stat, bool path_is_normalized, bool retry_current_failure)
|
||||
{
|
||||
if(!path_is_normalized)
|
||||
file_name = compiler_normalize_unit_path(context, file_name);
|
||||
@@ -1459,7 +1459,7 @@ bool compiler_unit_needs_recompile(Request* context, String file_name, bool* sou
|
||||
*source_missing = compile_check.source_missing;
|
||||
if(compile_check.source_missing)
|
||||
return(false);
|
||||
if(compiler_failure_retry_deferred(context, &su, state))
|
||||
if(!retry_current_failure && compiler_failure_retry_deferred(context, &su, state))
|
||||
return(false);
|
||||
return(compile_check.needs_compile);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user