Windows native build with ASan - Claude AI notes: ASan found a heap-use-after-free bug

FYI

Note: This could not have been accomplished without the help of Jan W.

Using commit

was able to build a Release version of SWI-Prolog on Windows 11 using CMake, MSVC and vcpkg.

cmake .. -G "Visual Studio 18 2026" -A x64 -DCMAKE_TOOLCHAIN_FILE=C:/dev/vcpkg/scripts/buildsystems/vcpkg.cmake -DPython_EXECUTABLE="C:/Users/Eric/AppData/Local/Programs/Python/Python313/python.exe" -DBDB_LIBRARY=C:/dev/vcpkg/installed/x64-windows/lib/libdb48.lib 
cmake --build . --config Release
ctest -C Release --output-on-failure --timeout 300

CMake: 0 Error(s)
Ctest : 100% tests passed, 0 tests failed out of 89

1 Like