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

Add syntax for setting an OptArg option to the default value. #1124

Closed
wants to merge 1 commit into from

Conversation

23Skidoo
Copy link
Member

Makes it possible to write 'jobs: $DEFAULT' in the config file, which is equivalent to running cabal install -j from the command line (the number of working threads is set to the number of processors).

Fixes #1053.

@dcoutts
Copy link
Contributor

dcoutts commented Nov 22, 2012

Hmm. Is this needed? You can get the default by not specifying anything, ie leaving it commented out.

@23Skidoo
Copy link
Member Author

Hmm. Is this needed? You can get the default by not specifying anything, ie leaving it commented out.

I'll give an example. Not specifying jobs is like not specifying -j on the command line (don't build in parallel). Setting jobs: 4 is like specifying -j4 on the command line (use 4 jobs). Setting jobs: $DEFAULT is like specifying -j on the command line (build in parallel, use the default number of jobs - that is, $numcores).

Makes it possible to write 'jobs: $DEFAULT' in the config file, which is
equivalent to running 'cabal install -j' from the command line (the number of
working threads is set to the number of processors).
@23Skidoo 23Skidoo mentioned this pull request Dec 11, 2012
@23Skidoo
Copy link
Member Author

Closing, since #1053 (the main reason we wanted this) is now fixed.

@23Skidoo 23Skidoo closed this Dec 13, 2012
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.

Syntax for setting option to no value in ~/.cabal/config
2 participants