Proposal: Make it possibly specify the component to build form the command line

Hi, Here's a another proposal. Now when we start having more components in one package (library, executables, test suites, and soon benchmarks) it would be convient to specify what to build directly from the command line without having to reconfigure e.g. cabal build my-test This would also allow one to enable all components e.g. cabal configure --enable-tests --enable-benchmarks but only build one of them (for faster build times) cabal build my-benchmark Would that work well with how Cabal keeps track of what to build? Cheers, Johan

On Tue, 2011-10-04 at 19:27 -0700, Johan Tibell wrote:
Hi,
Here's a another proposal.
Now when we start having more components in one package (library, executables, test suites, and soon benchmarks) it would be convient to specify what to build directly from the command line without having to reconfigure e.g.
cabal build my-test
This would also allow one to enable all components e.g.
cabal configure --enable-tests --enable-benchmarks
but only build one of them (for faster build times)
cabal build my-benchmark
Would that work well with how Cabal keeps track of what to build?
Yeah, I hope to add this feature once I've integrated the cabal ghci patches. For cabal ghci you need to be able to specify the component you want to load, and we discussed extending this to cover build too. Duncan
participants (2)
-
Duncan Coutts
-
Johan Tibell