cabal
cabal copied to clipboard
On Windows, with configuration `executable-dynamic: True` executables (including build-tools) cannot be built
This issue is singled out from:
- #9784
Adding executable-dynamic: True to the cabal configuration on Windows will fail executables to build.
This include situations where you just want to build a library, but it has build-tool-depends: alex or similar causing the linking of build-tool alex to fail.
Reproduced on a fresh Haskell installation: https://github.com/agda/agda/actions/runs/8213506540/job/22465003537#step:10:233
Building executable 'alex' for alex-3.5.1.0..
[ 1 of 19] Compiling DFS ( src\DFS.hs, dist\build\alex\alex-tmp\DFS.dyn_o )
src\DFS.hs:24:8: error: [GHC-88719]
Error: Could not load module ‘Prelude’.
Perhaps you haven't installed the "dyn" libraries for package ‘base-4.19.1.0’?