Commit 9a43f87
committed
fix: guard Config/Interpreter.hs with HAVE_INTERPRETER
When building without interpreter support (-interpreter flag),
InterpOpts is a stub empty data type without any fields. The
initInterpOpts function was trying to use all 20+ InterpOpts fields
unconditionally, causing build failures.
This fix makes the entire module conditional on HAVE_INTERPRETER:
- When defined: full implementation creating InterpOpts with all fields
- When not defined: stub that returns empty InterpOpts
This allows stage1 minimal builds (without interpreter) to complete
successfully.1 parent 2ac45f4 commit 9a43f87
1 file changed
+16
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| 8 | + | |
| 9 | + | |
6 | 10 | | |
7 | 11 | | |
8 | 12 | | |
| |||
44 | 48 | | |
45 | 49 | | |
46 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
0 commit comments