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 16:04:17 +01:00
commit d63357df90

View file

@ -105,9 +105,7 @@ namespace Crafter {
std::filesystem::path GetPath() { std::filesystem::path GetPath() {
char path[MAX_PATH]; char path[MAX_PATH];
DWORD length = GetModuleFileNameA(NULL, path, MAX_PATH); DWORD length = GetModuleFileNameA(NULL, path, MAX_PATH);
std::cout << length << std::endl;
if (length == 0) { if (length == 0) {
std::cout << "failed" << std::endl;
throw std::runtime_error("Failed to get executable path"); throw std::runtime_error("Failed to get executable path");
} }
path[length] = '\0'; path[length] = '\0';
@ -298,7 +296,9 @@ namespace Crafter {
// } // }
void BuildStdPcm(const Project& project, const Configuration& config) { void BuildStdPcm(const Project& project, const Configuration& config) {
std::cout << "bruh" << std::endl;
std::cout << config.target << std::endl; std::cout << config.target << std::endl;
std::cout << "bruh2" << std::endl;
if(config.target == "x86_64-pc-linux-gnu") { if(config.target == "x86_64-pc-linux-gnu") {
BuildGnuStdPcm(project, config); BuildGnuStdPcm(project, config);
} else if(config.target == "x86_64-w64-mingw32") { } else if(config.target == "x86_64-w64-mingw32") {