Updated to use the latest libgit2 1.9.0 and GCC14.

This commit is contained in:
Zed A. Shaw 2025-04-16 23:44:22 -04:00
parent 62785d463c
commit 2d81f900be
10 changed files with 29 additions and 35 deletions

View file

@ -17,7 +17,6 @@
#include "dbc.hpp"
using std::string;
using namespace fmt;
using namespace nlohmann;
using namespace std::chrono_literals;
@ -92,7 +91,7 @@ void Builder::BUILDING(BuildEvent ev) {
auto m = parse_line(line);
if(m.match) {
gui.output(format("HIT WITH {} @ {}:{}:{} {}", m.type, m.file_name, m.lnumber, m.col, m.message));
gui.output(fmt::format("HIT WITH {} @ {}:{}:{} {}", m.type, m.file_name, m.lnumber, m.col, m.message));
game.event(GameEvent::HIT, m.type);
}
state(BuildState::READING);
@ -100,7 +99,7 @@ void Builder::BUILDING(BuildEvent ev) {
}
void Builder::START(BuildEvent ev) {
gui.output(format("Using build command: {}", build_cmd));
gui.output(fmt::format("Using build command: {}", build_cmd));
fileWatcher = new efsw::FileWatcher();
dbc::check(fileWatcher != nullptr, "Failed to create filewatcher.");
@ -112,7 +111,7 @@ void Builder::START(BuildEvent ev) {
listener = new UpdateListener(repo);
dbc::check(listener != nullptr, "Failed to create listener.");
gui.output(format("Watching directory {} for changes...", git_path));
gui.output(fmt::format("Watching directory {} for changes...", git_path));
wid = fileWatcher->addWatch(git_path, listener, true);
fileWatcher->watch();
@ -123,7 +122,7 @@ void Builder::WAITING(BuildEvent ev) {
if(listener->changes) {
game.event(GameEvent::BUILD_START);
gui.building();
gui.output(format("CHANGES! Running build {}", build_cmd));
gui.output(fmt::format("CHANGES! Running build {}", build_cmd));
state(BuildState::FORKING);
}
}