Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow --with-PROG= and --PROG-options= for arbitrary programs #1380

Open
cartazio opened this issue Jul 1, 2013 · 3 comments
Open

Allow --with-PROG= and --PROG-options= for arbitrary programs #1380

cartazio opened this issue Jul 1, 2013 · 3 comments
Labels
Cabal: other cabal-install: other old-milestone: ⊥ Moved from https://github.com/haskell/cabal/milestone/5 type: enhancement
Milestone

Comments

@cartazio
Copy link
Contributor

cartazio commented Jul 1, 2013

As part of the llvm-general high level llvm binding, https://github.com/bscarlet/llvm-general, theres a bunch of work going on to support building using a large variety of llvm builds and install locations (in part to allow folks who for various practical reasons have multiple llvm versions installed to easily select the llvm lib install they want to link into).

this could work two different ways: provide a hook to register new programs with the programDB (and allow using those flags with any program registered in the program db), or just using those flags will add those programs to the programDB.

Ralith or BScarlet can chime in more

@bscarlet
Copy link

bscarlet commented Jul 1, 2013

LLVM includes a binary "llvm-config", which can tell us the rest of what we need to know about the LLVM install. We'd like to be able to specify the location of llvm-config on the command line to cabal install, as --with-llvm-config. The comments on Distribution.Simple.UserHooks(hookedPrograms) make it sound like adding a program there ought to make the flags work, but it doesn't. It'd be lovely if it did.

@cartazio
Copy link
Contributor Author

cartazio commented Jul 1, 2013

heres the associated work that documents some of the context + cabal hackery attempts therein bscarlet/llvm-general#41

@dcoutts
Copy link
Contributor

dcoutts commented Oct 17, 2013

So Setup.hs does already work like this. The problem is for cabal-install, that at the point when we're doing the command line parsing we don't know the programs available. We could perhaps try allowing any (though that's tricky with GetOpt) and then validating them later.

@ttuegel ttuegel added this to the _|_ milestone Apr 23, 2015
@ttuegel ttuegel changed the title feature request/bug : allow --with-PROG= and --PROG-options= flags to work with arbitrary programs (at least registered via setup.hs) Allow --with-PROG= and --PROG-options= for arbitrary programs Apr 23, 2015
@andreabedini andreabedini added the old-milestone: ⊥ Moved from https://github.com/haskell/cabal/milestone/5 label Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cabal: other cabal-install: other old-milestone: ⊥ Moved from https://github.com/haskell/cabal/milestone/5 type: enhancement
Projects
None yet
Development

No branches or pull requests

5 participants