# Undo "export MSYS=winsymlinks" done in top-level Makefile
unset MSYS

cd src

# See https://github.com/flintlib/flint/issues/2340
export CFLAGS="$CFLAGS -fno-strict-aliasing"

if [ -n "$MSYSTEM" ]; then
    sdh_cmake -G Ninja \
        -DENABLE_ARCH=NO \
        .
    cmake --build .
    DESTDIR=$SAGE_DESTDIR cmake --install .
else
    sdh_configure
    sdh_make
    sdh_make_install
fi
