Skip to content

Commit

Permalink
Set the project building status while detecting build.
Browse files Browse the repository at this point in the history
Also set DEBUGGER=1 in debug build command
  • Loading branch information
jackburton79 committed May 23, 2024
1 parent fb5b756 commit 3469792
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/ui/GenioWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3506,6 +3506,9 @@ GenioWindow::_ProjectGuessBuildCommand(ProjectFolder* projectFolder)
if (!projectFolder->GetBuildCommand().IsEmpty())
return;

// So we start the spinner and disable the settings menu
projectFolder->SetBuildingState(true);

// TODO: descend into subfolders ?
BEntry entry;
BDirectory dir(projectFolder->Path());
Expand All @@ -3521,8 +3524,8 @@ GenioWindow::_ProjectGuessBuildCommand(ProjectFolder* projectFolder)
// builder: make
projectFolder->SetBuildCommand("make", BuildMode::ReleaseMode);
projectFolder->SetCleanCommand("make clean", BuildMode::ReleaseMode);
projectFolder->SetBuildCommand("make", BuildMode::DebugMode);
projectFolder->SetCleanCommand("make clean", BuildMode::DebugMode);
projectFolder->SetBuildCommand("DEBUGGER=1 make", BuildMode::DebugMode);
projectFolder->SetCleanCommand("DEBUGGER=1 make clean", BuildMode::DebugMode);
LogInfo("Guessed builder: make");
break;
} else if (strcasecmp(entry.Name(), "jamfile") == 0) {
Expand All @@ -3535,6 +3538,7 @@ GenioWindow::_ProjectGuessBuildCommand(ProjectFolder* projectFolder)
break;
}
}
projectFolder->SetBuildingState(false);
}


Expand Down

0 comments on commit 3469792

Please sign in to comment.