Refuse to build if no mk/build.mk is supplied
A common thing that trips up people who are hacking on GHC for the first time is not knowing about the mk/build.mk file. Without it, GHC builds with all optimizations, and the process is very slow (on order of two hours.)
It may be useful to have the build system to refuse to build without a mk/build.mk file present. While there is certainly potential for annoyance, we can mitigate this by distributing source distributions that have empty mk/build.mk files. Thus end-users won't be bothered, but users who do Git checkouts will be asked about it. The build process could also conditionalize on the presence of a .git directory.
Validates would not be affected.
Trac metadata
Trac field | Value |
---|---|
Version | 7.1 |
Type | FeatureRequest |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Build System |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |