This commit is contained in:
parent
bdfa10e835
commit
d824f88cb5
1 changed files with 12 additions and 0 deletions
|
|
@ -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") {
|
if(config.target == "wasm32-wasi") {
|
||||||
command += std::format(" --sysroot={} -fno-exceptions -fno-c++-static-destructors", (exeDir/"wasi-sysroot-28.0").string());
|
command += std::format(" --sysroot={} -fno-exceptions -fno-c++-static-destructors", (exeDir/"wasi-sysroot-28.0").string());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue