Somebody claiming to be Roman Cheplyaka wrote:
* Stephen Paul Weber <[email protected]> [2012-12-09 21:20:34+0000]
I don't see a command-line switch to ask cabal-install to use a
different config file.

There's a '--config-file' option, see https://github.com/haskell/cabal/issues/1113

Sweet!  I've got my environment working using this shell wrapper:

#!/bin/sh

export PATH="$HOME/src/ghc/inplace:$PATH"

case "$1" in
        install)
                shift
                cabal --config-file="$HOME/.cabal-nto-qnx-i486/config" install 
--with-gcc=i486-pc-nto-qnx8.0.0-gcc --configure-option=--target=i486-pc-nto-qnx8.0.0 
--configure-option=--build=i686-linux-gnu --configure-option=--host=i486-pc-nto-qnx8.0.0 
--hsc2hs-option=--cross-safe --hsc2hs-option=--cross-compile "$@"
                ;;
        *)
                cabal --config-file="$HOME/.cabal-nto-qnx-i486/config" "$@"
                ;;
esac

Can I move any/all of those switches into the config file? None of them really seem to fit in the listed config options.

--
Stephen Paul Weber, @singpolyma
See <http://singpolyma.net> for how I prefer to be contacted
edition right joseph

_______________________________________________
Glasgow-haskell-users mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to