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

This commit is contained in:
Jorijn van der Graaf 2026-03-01 15:00:13 +01:00
commit e61a9d8363

View file

@ -251,26 +251,22 @@ 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());
} }
#ifdef CRAFTER_BUILD_CONFIGURATION_TARGET_x86_64_pc_linux_gnu for(const Define& define : config.defines) {
if(define.value.empty()) { #ifdef CRAFTER_BUILD_CONFIGURATION_TARGET_x86_64_pc_linux_gnu
if(define.value.empty()) {
command += std::format(" -D {}", define.name); command += std::format(" -D {}", define.name);
} else { } else {
command += std::format(" -D {}={}", define.name, define.value); command += std::format(" -D {}={}", define.name, define.value);
} }
} #endif
#endif #if defined(CRAFTER_BUILD_CONFIGURATION_TARGET_x86_64_pc_windows_msvc) || defined(CRAFTER_BUILD_CONFIGURATION_TARGET_x86_64_w64_mingw32)
#if defined(CRAFTER_BUILD_CONFIGURATION_TARGET_x86_64_pc_windows_msvc) || defined(CRAFTER_BUILD_CONFIGURATION_TARGET_x86_64_w64_mingw32) if(define.value.empty()) {
if(define.value.empty()) {
command += std::format(" /D {}", define.name); command += std::format(" /D {}", define.name);
} else { } else {
command += std::format(" /D {}={}", define.name, define.value); command += std::format(" /D {}={}", define.name, define.value);
} }
#endif
} }
#endif
for(const Define& define : config.defines) {
fs::path pcmDir; fs::path pcmDir;