From d824f88cb50d0c29248a34eebcc0d2d0c7499801 Mon Sep 17 00:00:00 2001 From: Jorijn van der Graaf Date: Mon, 2 Mar 2026 22:32:07 +0100 Subject: [PATCH] windows build fix --- implementations/Crafter.Build-Project.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/implementations/Crafter.Build-Project.cpp b/implementations/Crafter.Build-Project.cpp index 25d98f2..b6c2f17 100644 --- a/implementations/Crafter.Build-Project.cpp +++ b/implementations/Crafter.Build-Project.cpp @@ -265,6 +265,18 @@ namespace Crafter { } } + for (const auto& entry : fs::directory_iterator(buildDir)) { + if (entry.is_directory()) { + command += " -I" + entry.path().string() + " "; + } + } + + for (const auto& entry : fs::directory_iterator(exeDir / "cloneCache")) { + if (entry.is_directory()) { + command += " -I" + entry.path().string() + " "; + } + } + if(config.target == "wasm32-wasi") { command += std::format(" --sysroot={} -fno-exceptions -fno-c++-static-destructors", (exeDir/"wasi-sysroot-28.0").string()); }