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

This commit is contained in:
Jorijn van der Graaf 2026-03-01 20:17:50 +01:00
commit 8b613a9f0f
3 changed files with 5 additions and 3 deletions

View file

@ -75,7 +75,8 @@ namespace Crafter {
#endif
#if defined(CRAFTER_BUILD_CONFIGURATION_TARGET_x86_64_pc_windows_msvc) || defined(CRAFTER_BUILD_CONFIGURATION_TARGET_x86_64_w64_mingw32)
AutoDetect();
target = RunCommand(std::format("{} && clang-cl.exe -print-target-triple", vsVars));
target = "x86_64-pc-windows-msvc";
//target = RunCommand(std::format("{} && clang-cl.exe -print-target-triple", vsVars));
#endif
target.pop_back();
}

View file

@ -473,11 +473,11 @@ namespace Crafter {
#endif
} else if(config.type == CRAFTER_CONFIGURATION_TYPE_LIBRARY) {
#ifdef CRAFTER_BUILD_CONFIGURATION_TARGET_x86_64_pc_linux_gnu
RunCommandIgnore(std::format("ar r {}.a {}", (binDir/fs::path(std::string("lib")+outputName)).string(), files));
RunClang(std::format("ar r {}.a {}", (binDir/fs::path(std::string("lib")+outputName)).string(), files));
#endif
#if defined(CRAFTER_BUILD_CONFIGURATION_TARGET_x86_64_pc_windows_msvc) || defined(CRAFTER_BUILD_CONFIGURATION_TARGET_x86_64_w64_mingw32)
RunCommandIgnore(std::format("{} && lib.exe {} /OUT:{}.lib", vsVars, files, (binDir/fs::path(outputName)).string()));
RunClang(std::format("{} && lib.exe {} /OUT:{}.lib", vsVars, files, (binDir/fs::path(outputName)).string()));
#endif
} else {
#ifdef CRAFTER_BUILD_CONFIGURATION_TARGET_x86_64_pc_linux_gnu

View file

@ -63,6 +63,7 @@
"extends": ["base", "libs-windows-msvc-debug"],
"type":"library",
"implementations": ["implementations/main"],
"lib_dirs": ["C:\\VulkanSDK\\1.4.341.1\\Lib"],
"debug": true
}
]