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-02 22:59:56 +01:00
commit 25f7a1371d

View file

@ -476,7 +476,7 @@ namespace Crafter {
#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)
system("echo %LIBCXX_DIR%\\lib\\c++.dll"); system("echo %LIBCXX_DIR%\\lib\\c++.dll");
system("echo .\\bin\\executable-windows-msvc\\c++.dll"); system(std::format("{}\\c++.dll", binDir.string()).c_str());
system(std::format("copy %LIBCXX_DIR%\\lib\\c++.dll {}\\c++.dll", binDir.string()).c_str()); system(std::format("copy %LIBCXX_DIR%\\lib\\c++.dll {}\\c++.dll", binDir.string()).c_str());
buildResult.errors = RunClang(std::format("{}{} -o {}.exe -fuse-ld=lld -L %LIBCXX_DIR%\\lib -lc++ -nostdinc++ -nostdlib++", command, files, (binDir/outputName).string())); buildResult.errors = RunClang(std::format("{}{} -o {}.exe -fuse-ld=lld -L %LIBCXX_DIR%\\lib -lc++ -nostdinc++ -nostdlib++", command, files, (binDir/outputName).string()));
#endif #endif