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 16:10:13 +01:00
commit 60404e393c

View file

@ -68,7 +68,13 @@ namespace Crafter {
if(config.contains("target")) { if(config.contains("target")) {
target = config["target"].get<std::string>(); target = config["target"].get<std::string>();
} else { } else {
#ifdef CRAFTER_BUILD_CONFIGURATION_TARGET_x86_64_pc_linux_gnu
target = RunCommand("clang -print-target-triple"); target = RunCommand("clang -print-target-triple");
#endif
#if defined(CRAFTER_BUILD_CONFIGURATION_TARGET_x86_64_pc_windows_msvc) || defined(CRAFTER_BUILD_CONFIGURATION_TARGET_x86_64_w64_mingw32)
GetPath();
target = RunCommand(std::format("{}\\clang-cl.exe -print-target-triple", clangClDir));
#endif
target.pop_back(); target.pop_back();
} }
if(config.contains("debug")) { if(config.contains("debug")) {