windows build fixes
Some checks failed
demo.yaml / windows build fixes (push) Failing after 0s

This commit is contained in:
Jorijn van der Graaf 2026-03-01 15:55:02 +01:00
commit 0efce16d3c

View file

@ -69,14 +69,8 @@ int main(int argc, char* argv[]) {
Project project(std::move(projectPath));
if(command == "build") {
std::tuple<Configuration&, BuildResult> config;
std::tuple<Configuration&, BuildResult> config = project.Build(argument);
try {
config = project.Build(argument);
} catch(std::exception& e) {
std::cout << e.what() << std::endl;
}
if(std::get<1>(config).errors.empty()) {
if(run){
std::string binDir = std::format("{}/{}", project.binDir.string(), std::get<0>(config).name);
@ -100,6 +94,9 @@ int main(int argc, char* argv[]) {
std::cout << std::get<1>(config).errors << std::endl;
return 1;
}
} catch(std::exception& e) {
std::cout << e.what() << std::endl;
}
} else if(command == "test") {
bool anyFailed = false;