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

This commit is contained in:
Jorijn van der Graaf 2026-03-01 20:24:35 +01:00
commit 2c6a7cb857
4 changed files with 13 additions and 2 deletions

View file

@ -240,7 +240,9 @@ namespace Crafter {
fs::path exeDir = GetPath();
std::cout << "before pcm" << std::endl;
BuildStdPcm(*this, config);
std::cout << "after pcm" << std::endl;
std::string editedTarget = config.target;
std::replace(editedTarget.begin(), editedTarget.end(), '-', '_');
@ -331,6 +333,8 @@ namespace Crafter {
std::vector<std::string> resultsDep(config.dependencies.size());
std::cout << "bruh 5" << std::endl;
for(std::uint_fast32_t i = 0; i < depThreads.size(); i++) {
depThreads[i] = std::thread([i, &config, &libMutex, &depLibSet, &buildDir, &pcmDir, &libsString, &binDir, this, &buildResult, &resultsDep](){
for(Configuration& config2 : std::get<0>(config.dependencies[i])->configurations) {
@ -366,6 +370,9 @@ namespace Crafter {
return buildResult;
}
std::cout << "bruh 7" << std::endl;
for(const fs::path& cFile: config.c_files) {
files+=std::format(" {}_source.o ",(buildDir/cFile.filename()).string());
if(!fs::exists((buildDir/cFile.filename()).string()+"_source.o") || fs::last_write_time(cFile.string()+".c") > fs::last_write_time((buildDir/cFile.filename()).string()+"_source.o")) {
@ -424,6 +431,9 @@ namespace Crafter {
return buildResult;
}
std::cout << "bruh 8" << std::endl;
if(config.target != "wasm32-wasi") {
command += " -L/usr/local/lib";
}