Back to Bear

Bear on Windows

site/src/platforms/windows.md

4.2.01.0 KB
Original Source
<!-- Diataxis type: how-to -->

Bear on Windows

Wrapper is the only interception method on Windows: there is no LD_PRELOAD/DYLD_INSERT_LIBRARIES equivalent, so forcing preload is a startup error before anything runs (see how Bear works and Configure Bear).

MSYS2 and MinGW64 environments

Bear builds under MSYS2's Unix-like environments (MINGW64, UCRT64, CLANG64, CLANGARM64). $MINGW_PREFIX points at whichever one you launched (/mingw64, /ucrt64, /clang64, and so on), the natural PREFIX for installing into it:

sh
DESTDIR="$pkgdir" PREFIX="$MINGW_PREFIX" ./scripts/install.sh

Only bear-driver and bear-wrapper are installed in this configuration; there is no preload library to package.

Related: how Bear works for the wrapper mechanism, Troubleshooting for output that comes out wrong, and the Recipes index for other tasks.