Commit 0a2b46e
committed
cabal-install: call Cabal in-library
This commit modifies the SetupWrapper mechanism, adding a new way of
building a package: directly calling Cabal library functions (e.g.
'build', 'configure' etc).
This currently requires a bit of GADT trickery to accomodate the fact
that configure returns a LocalBuildInfo which must then be passed to
subsequent phases, while with the old Setup interface everything returns
IO () and communication is done through the filesystem
(the local build info file).
To handle 'build-type: Hooks', this commit introduces the hooks-exe
package, which contains:
- the hooks-exe library, used to compile a set of SetupHooks into an
external executable,
- the hooks-cli library, which is used by cabal-install to communicate
with an external hooks executable.
This package depends on the new `CommunicationHandle` functionality from
haskell/process#308.1 parent 575acc9 commit 0a2b46e
66 files changed
Lines changed: 3073 additions & 1190 deletions
File tree
- Cabal/src/Distribution
- Simple
- Program
- SetupHooks
- Test
- bootstrap
- cabal-install
- src/Distribution/Client
- ProjectBuilding
- ProjectPlanning
- tests
- cabal-testsuite
- PackageTests
- BuildAutogenPackageGuard
- NewBuild/CmdRun/ScriptLiterate
- NoOSSupport
- DynExe
- RelocatableExe
- Project/CoverageProject
- pkg-a
- Regression
- T5318
- T6440
- T7234/Success
- T9640
- SetupHooks/SetupHooksRecompilation
- src
- WithRepl/SimpleTests
- main
- hooks-exe
- cli/Distribution/Client/SetupHooks
- CallHooksExe
- exe/Distribution/Client/SetupHooks
- HooksExe
- version/Distribution/Client/SetupHooks
- project-cabal/pkgs
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
175 | 184 | | |
176 | 185 | | |
177 | 186 | | |
| |||
189 | 198 | | |
190 | 199 | | |
191 | 200 | | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
199 | 209 | | |
200 | 210 | | |
201 | 211 | | |
| |||
230 | 240 | | |
231 | 241 | | |
232 | 242 | | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
241 | 252 | | |
242 | 253 | | |
243 | 254 | | |
| |||
246 | 257 | | |
247 | 258 | | |
248 | 259 | | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
256 | 268 | | |
257 | 269 | | |
258 | 270 | | |
| |||
261 | 273 | | |
262 | 274 | | |
263 | 275 | | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
271 | 284 | | |
272 | 285 | | |
273 | 286 | | |
| |||
931 | 944 | | |
932 | 945 | | |
933 | 946 | | |
934 | | - | |
935 | | - | |
| 947 | + | |
| 948 | + | |
936 | 949 | | |
937 | 950 | | |
938 | 951 | | |
939 | 952 | | |
| 953 | + | |
940 | 954 | | |
941 | 955 | | |
942 | 956 | | |
| |||
1156 | 1170 | | |
1157 | 1171 | | |
1158 | 1172 | | |
1159 | | - | |
1160 | | - | |
1161 | | - | |
1162 | | - | |
1163 | | - | |
1164 | | - | |
1165 | | - | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
1166 | 1181 | | |
1167 | 1182 | | |
1168 | 1183 | | |
| |||
1173 | 1188 | | |
1174 | 1189 | | |
1175 | 1190 | | |
1176 | | - | |
1177 | | - | |
1178 | | - | |
1179 | | - | |
1180 | | - | |
1181 | | - | |
1182 | | - | |
1183 | | - | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
1184 | 1200 | | |
1185 | 1201 | | |
1186 | 1202 | | |
| |||
0 commit comments