Skip to content

Commit

Permalink
* Toolchain warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Bezborodov committed Oct 29, 2024
1 parent d10dd00 commit 230aa1c
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions LiteEditor/BuildTab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,17 @@ void BuildTab::OnBuildStarted(clBuildEvent& e)
// get the toolchain from the event and attempt to load the compiler
const wxString& toolchain = e.GetToolchain();
if(!toolchain.empty() && BuildSettingsConfigST::Get()->IsCompilerExist(toolchain)) {
m_activeCompiler = BuildSettingsConfigST::Get()->GetCompiler(toolchain);
clDEBUG() << "Active compiler is set to:" << m_activeCompiler->GetName() << endl;
m_activeCompiler = BuildSettingsConfigST::Get()->GetCompiler(toolchain);
clDEBUG() << "Active compiler is set to:" << m_activeCompiler->GetName() << endl;

} else {
clDEBUG() << "Compiler not selected in the workspace build settings or not available" << endl;

// toolchain not selected in build configuration or unavailable
m_view->AppendItem(wxT("\n"));
m_view->AppendItem(WrapLineInColour(wxT("> WARNING: No toolchain selected. Build log highlighting will not be available!\n"), AnsiColours::Yellow()));
m_view->AppendItem(WrapLineInColour(wxT(" Check toolchain properly selected in the workspace build settings.\n"), AnsiColours::Yellow()));
m_view->AppendItem(wxT("\n"));
}

// notify the plugins that the build had started
Expand Down

0 comments on commit 230aa1c

Please sign in to comment.