-
Notifications
You must be signed in to change notification settings - Fork 81
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
Remove special case for -c dbg
and -c opt
#1129
Comments
... and the C++ code likely also takes 2x more time to build. But isn't that exactly what you asked for in that case? i.e. "Ms compiler, please spend more time to generate better code"? Today |
First of all, the increase of build time with I propose to let the user choose based on configuration. Actually that's fine if you want to keep the
|
The title of this issue is "Remove special case for As for the questions in your previous comment, those sound like different feature requests to me. |
Could you suggest a better title for the issue please? |
Closed in favor of #1315 :
|
When building with
-c opt
or-c dbg
, rules_haskell changes the behavior as following:-c opt
:-O2
flag is added-c dbg
: a lot of stuffs are changed to enable Haskell debug.I'm facing the following problems on a codebase with Haskell and C++ code.
-c opt
) and suddenly the Haskell code takes 2x more time to build-c dbg
) and suddenly the Haskell code takes 15x more time to build (see Profiling is unecessary slow #438 )We can also imagine context where we want to build C++ or Haskell code with profiling and optimization, this is not easily doable today.
I propose the following changes:
-c opt
. If users want-O2
, they can add it oncompiler_flags
based on configurations.-c dbg
and replace this by a flag on thehaskell_toolchain
or onhaskell_library
/haskell_binary
.The text was updated successfully, but these errors were encountered: