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()); }