-
Notifications
You must be signed in to change notification settings - Fork 842
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
Never build snapshot dependencies with executable profiling enabled (was: Can't build snap dependency when profiling is enabled) #1179
Comments
I don't suppose you can give us access to the project? Or provide an example project that demonstrates the problem? |
git clone [email protected]:ae7d56720d2938d7c3af.git stack-test
cd stack-test
stack build --executable-profiling |
The Here's a workaround that worked for me:
The first builds the snap library with profiling, but doesn't try to build the @snoyberg: I'm thinking that, for the sake of consistency, building snapshot dependencies should ignore |
I'm OK with that. I'll admit that I don't have a deep understanding of what On Sun, Nov 1, 2015 at 8:17 AM, Emanuel Borsboom [email protected]
|
I think in this case it's something related to the Template Haskell in used to build the executable . With |
I found myself running into this exact same issue. I don't know the possible side effects of having dependencies ignore executable profiling but it would sure be helpful from where I sit. I have 2 dependencies (1 indirect) whose executables I do not use. Because executable profiling applies to the main project and all dependencies, this blocks me from being able to compile my own project's executables with profiling because executables that I don't use fail to compile with that flag. |
@MichaelXavier I've pushed a commit that should help the issue. Does it? Literally as easy as adding |
@mgsloan by all accounts that seems to have done the trick! Thanks so much for looking into this. I can now ship profiling builds to production for debugging some really tricky issues. |
Great, glad it worked! |
My app is a pretty straight forward web app based on snap. I need to build it with profiling enabled, but that fails. It works fine when profiling is not enabled.
Might be related to #608. Though apparently that bug has been fixed a long time ago. I'm using GHC 7.10.2.
I don't really need to profile snap, I know the performance problem is elsewhere. An acceptable workaround for me would be to compile snap normally and everything else with profiling enabled.
The text was updated successfully, but these errors were encountered: