Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • GHC GHC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 4,869
    • Issues 4,869
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 456
    • Merge requests 456
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #17192
Closed
Open
Created Sep 13, 2019 by John Ericson@Ericson2314Developer

Windows without MinGW

This is a long term, pie-in-the-sky goal, but it would be nice to build binaries without MinGW / MSYS. LLVM's Windows support is now superior, especially when C++ is involved, so it would be nice to use it. After that I might even aim for MSVC support (You can try things the flags with clang-cl.)

Beyond Windows itself, it's good to rid an assumption of Unixy assumptions. One small example example having to output with GCC- and MSVC- style flags forces better abstractions that are probably a good idea anyways. More broadly, this also helps if we are every to run GHC on exotic platforms like Fuschia or some WASM thing or HalVM or whatever.

I have a few ideas on how this might work. The first step is just focusing on cross; that is just changing Haskell code. For actually building GHC, we need to just remove Make, sh, and other unix-only tools from the build-time deps. Shake avoids make, of course. As to sh, the main source is configure scripts (I think?). If we do #17191 we could rewrite the RTS configure to use CMake or Meson. Those both support Ninja, which shake can consume. https://gitlab.freedesktop.org/gstreamer/meson-ports/libffi is also a meson point of libffi. I think that just leaves GMP, but one can use integer-simple as a stop-gap.

CC @angerman @ndmitchell @Phyx @trac-matthewbauer

Edited Sep 13, 2019 by John Ericson
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking