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

Forwarding of GHC runtime system options (useful for profiling) #12

Merged
merged 3 commits into from Jul 26, 2012
Merged

Conversation

mgajda
Copy link

@mgajda mgajda commented Jul 16, 2012

Closes #11.

Forwarding GHC runtime system arguments.

Normally GHC runtime system arguments are
processed before the program, and invisible to
System.Environment.getArgs.

We use GHC.Environment.getFullArgs to forward them,
and add an option rtsOptsHandling to describe
whether they should be appended by any other, or replaced
during relaunch.

I bumped the version number, since this seems to be a significant feature (at least for people interested in seamless profiling.)

Michal J. Gajda added 3 commits July 16, 2012 20:15
Normally GHC runtime system arguments are
processed before the program, and invisible to
System.Environment.getArgs.

We use GHC.Environment.getFullArgs to forward them,
and add an option rtsOptsHandling to describe
whether they should be appended by any other, or replaced
during relaunch.
By default Dyre included current directory in the list of include dirs.
It causes a problem when running configurable program in its own project
directory (particularly natural for an editor.)

This patch adds an option includeCurrentDirectory that stops it from
happening, if set to False. Behaviour is unchanged by default.
willdonnelly added a commit that referenced this pull request Jul 26, 2012
Forwarding of GHC runtime system options (useful for profiling)
@willdonnelly willdonnelly merged commit 7d044d0 into willdonnelly:master Jul 26, 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.

Pass GHC runtime system arguments to the binary - enables profiling
2 participants