# MinGW-w64 cross-build environment for VoidLibrary (Windows x64 from Linux). # # Uses the LLVM-MinGW toolchain (Clang + libc++ + MinGW-w64 runtime), which is # new enough for the C++26 features this project uses. Reflection is not # available on Clang, so the reflection-only tests are skipped exactly as on # any non-reflecting compiler. FROM mstorsjo/llvm-mingw:latest ARG CMAKE_VERSION=4.2.3 # The base image is Ubuntu 24.04 with CMake 3.28; Void requires CMake 4. RUN apt-get update \ && apt-get install -y --no-install-recommends ca-certificates curl git \ && rm -rf /var/lib/apt/lists/* RUN curl -fsSL -o /tmp/cmake.tar.gz \ "https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-linux-x86_64.tar.gz" \ && tar -xzf /tmp/cmake.tar.gz -C /opt \ && ln -sf "/opt/cmake-${CMAKE_VERSION}-linux-x86_64/bin/cmake" /usr/local/bin/cmake \ && ln -sf "/opt/cmake-${CMAKE_VERSION}-linux-x86_64/bin/ctest" /usr/local/bin/ctest \ && ln -sf "/opt/cmake-${CMAKE_VERSION}-linux-x86_64/bin/cpack" /usr/local/bin/cpack \ && rm /tmp/cmake.tar.gz ENV PATH="/opt/llvm-mingw/bin:${PATH}" WORKDIR /src CMD ["bash"]