well-typed / hs-bindgen

Automatically generate Haskell bindings from C header files
13 stars 0 forks source link

llvm-config doesn't exist on Windows #117

Closed phadej closed 2 weeks ago

phadej commented 2 weeks ago

I found this https://stackoverflow.com/questions/17096804/where-is-llvm-config-in-windows and that https://discourse.llvm.org/t/no-llvm-config-exe-or-llvmconfig-cmake-in-pre-built-windows/57692/3, and apparently that is at least true for LLVM-14 still.

Do we need to support Windows?

phadej commented 2 weeks ago

https://github.com/well-typed/hs-bindgen/pull/116 solves adds macOS CI setup, but windows CI is stuck on a decision.

If we need to support Windows than #102 is worth solving, but for this reason, not the minimal installation. I doubt anyone cares about minimal libclang installation on Windows, the official bindist is probably the preferred. (Or maybe you can use rustup installation too, at least on Ubuntu rust depends on libllvm, so you kind of get most of the stuff there already; but you probably miss development headers, which may be included on Windows).

EDIT: it looks like that llvm stuff is statically linked into rustup installed rustc on Linux, so that's probably true on Windows too. No library sharing there.

edsko commented 2 weeks ago

@phadej The decision right now is that we should try and support Windows, and reconsider if we come across some major obstacles. So yes, let's try to make Windows work.