Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-107516

Migrate from GCC MinGW to LLVM-MinGW



    • Task
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • None
    • Packaging & Installer
    • None


      We have the LLVM-MinGW as a CI test configuration for a while now.

      Migrating to LLVM-MinGW would bring the Windows Arm64 support for MinGW, which the GCC package doesn't offer.

      Other benefits would be:

      • faster toolchain, thus happier customers (GCC MinGW on Windows is pretty slow, the linker is slow, the debugger is slow etc).
      • potential support for UWP APIs. Clang does have clang-cl support, which means that the compiler is able to handle MSVC quirks.
        See MinGW GCC support · Issue #1037 · microsoft/cppwinrt (github.com) 
        This would allow Qt Bluetooth to be compiled with the new APIs in the same way as the MSVC version
      • Qt Webengine build. Similar story to the one above. clang-cl can compile Qt Webengine, a LLVM-MinGW version should also be able to handle this.
      • Faster debugging
      • Cross-compilation of Windows applications from macOS os Linux hosts

      I've opened up a ticket for WinRT for LLVM-MinGW at Windows Runtime (WinRT) APIs support · Issue #307 · mstorsjo/llvm-mingw (github.com)


        1. clang-long-path.png
          46 kB
          Cristian Adam
        2. cl-long-path.png
          49 kB
          Cristian Adam
        3. gcc-long-path.png
          42 kB
          Cristian Adam
        4. qtcreator-11-llvm-mingw-16.0.6.mp4
          2.77 MB
          Cristian Adam
        5. qtcreator-11-mingw-11.2.0.mp4
          5.95 MB
          Cristian Adam

        Issue Links



              releaseteam Qt Release Team
              cadam Cristian Adam
              10 Vote for this issue
              18 Start watching this issue