Commit f87b28e
committed
CI: pass DYNAMIC to stage1 build to fix dynHelloWorld test failure
When stage1 is built without DYNAMIC but stage2 with DYNAMIC=1,
config.status is created without --enable-dynamic. This means
cabal.project.stage2.settings gets shared: False, so no dynamic
libraries are built. However, the stage1 recipe re-runs during
stage2 (order-only dep on non-file target) with DYNAMIC=1, causing
the sed to add 'dyn' to RTS ways in settings. Result: settings
claims dyn is available but no .dylib/.so files exist, causing
dynHelloWorld(dyn) to fail on darwin.
Fix: pass DYNAMIC=${{ matrix.dynamic }} to stage1 so configure
runs with --enable-dynamic from the start, generating the correct
cabal.project.stage2.settings with shared: True.1 parent 63ec36d commit f87b28e
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| |||
0 commit comments