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

This commit is contained in:
Jorijn van der Graaf 2026-03-02 21:18:11 +01:00
commit 538ec5419d

View file

@ -251,6 +251,8 @@ namespace Crafter {
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());
} }
for(const Define& define : config.defines) { for(const Define& define : config.defines) {
if(define.value.empty()) { if(define.value.empty()) {
command += std::format(" -D {}", define.name); command += std::format(" -D {}", define.name);
@ -277,6 +279,10 @@ namespace Crafter {
pcmDir = buildDir; pcmDir = buildDir;
} }
#if defined(CRAFTER_BUILD_CONFIGURATION_TARGET_x86_64_pc_windows_msvc) || defined(CRAFTER_BUILD_CONFIGURATION_TARGET_x86_64_w64_mingw32)
command += "-D _CRT_SECURE_NO_WARNINGS"
#endif
command += std::format(" -fprebuilt-module-path={}", pcmDir.string()); command += std::format(" -fprebuilt-module-path={}", pcmDir.string());
std::string cmakeBuildType; std::string cmakeBuildType;