-
Notifications
You must be signed in to change notification settings - Fork 194
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 appveyor build matrix with debug build #452
Conversation
fb47084
to
e6bff11
Compare
e6bff11
to
996dd4c
Compare
Can you additionally enable optimization to the debug build? |
which https://docs.microsoft.com/en-us/cpp/build/reference/o-options-optimize-code?view=vs-2019 ? you can also add it yourself, I'm afk for a moment |
Hmm, it seems /Od is the mode without any optimization. /DEBUG is for debugging infos. I think you basically never want /Od except for fast compilation speed etc. What do you propose @sjaeckel? |
AFAIU /Od is the default, as if no option is given, so we should probably make our code deal with that!? |
Yes, then we could to use the fix I described in #438. This would make the standard build compatible with the standard compiler settings. (Even if those settings are not good - I wonder what people are creating these unoptimized debug builds for.) But still, the MP_HAS infrastructure would not work with /Od if functions are disabled in tommath_class.h. This means the fix would be incomplete. But if tommath_class is tweaked we are already doing a non standard build. In that case it is ok to require tweaking the options (disallowing /Od setting). If we want to reconsider things regarding how MP_HAS works: @nijtmans your opinion on this? You seem to use Windows/msvc mostly? |
it sounds like a good trade-off to have the standard build compile with standard compiler settings and if someone wants to tweak the library the compiler settings have to be tweaked as well
this was just a test to try something out option 2 would be to leave it as is and only add a comment what has to be done to fix it in the documentation and maybe a pointer in
I like the current approach! I don't want to reconsider, do you?
doesn't look like it works: |
Ok, I think we should just keep things as is and add a comment to s_mp_rand_platform, which says that /Od doesn't work due to insufficient dead code analysis. And if for some reason the user wants to use /Od, they can apply the patch themselves. |
closed in favor of #456 |
No description provided.