Skip to content

Don't pass unsupported flags to setups built with old Cabal versions. #1133

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

Merged
merged 1 commit into from
Nov 29, 2012

Conversation

23Skidoo
Copy link
Member

We must not pass --disable-benchmarks to setup scripts built with Cabal < 1.14; the same is also true for --disable-tests and Cabal < 1.10.

Fixes #932 and #1004.

Without this patch:

$ cabal install -w /path/to/ghc-7.2.1/bin/ghc syb
[...]
unrecognized option `--disable-benchmarks'
Failed to install syb-0.3.7

With this patch:

$ cabal install -w /path/to/ghc-7.2.1/bin/ghc syb
[...]
Registering syb-0.3.7...
Installed syb-0.3.7

We must not pass '--disable-benchmarks' to setup scripts built with Cabal <
1.14; the same is also true for '--disable-tests' and Cabal < 1.10.

Fixes haskell#932 and haskell#1004.

Without this patch:

    $ cabal install -w /path/to/ghc-7.2.1/bin/ghc syb
    [...]
    unrecognized option `--disable-benchmarks'
    Failed to install syb-0.3.7

With this patch:

    $ cabal install -w /path/to/ghc-7.2.1/bin/ghc syb
    [...]
    Registering syb-0.3.7...
    Installed syb-0.3.7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cabal install passes --disable-benchmarks to setups built with Cabal lib versions that don't know that flag
2 participants