[build] Fix Gradle build on macOS 11.0 Big Sur (#2656)

This commit is contained in:
Prateek Machiraju
2020-08-29 23:29:49 -04:00
committed by GitHub
parent 83376bc231
commit 416288061a
2 changed files with 15 additions and 2 deletions

View File

@@ -232,7 +232,7 @@ void Scheduler::Impl::ProcessCommandAddition(Command* command) {
if (found == commands.end()) {
// Check that the requirements can be had
const auto& requirements = command->GetRequirements();
for (const auto& requirement : requirements) {
for (const auto requirement : requirements) {
if (requirement->GetCurrentCommand() != nullptr &&
!requirement->GetCurrentCommand()->IsInterruptible())
return;