-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
[corrade] Fix build of magnum on MSVC 2019 #7537
Conversation
This flag was introduced in 71214e6 on Jun 25, however proper MSVC 2019 compatibility was introduced soon after (on Jul 5). Setting this flag unconditionally unfortunately breaks the build of Magnum and causes some code parts to be overly pessimistic about C++ standard support, leading to a reduced feature set.
Hi @mosra Not sure about the intent here. Reverting the workaround flag without fixing the original issue will break back the generation for vs2019. So, waiting for the next version of Magnum to be released, how about:
|
@tarcila, thanks for your reply. The intent is:
Releasing a new tagged version that works with MSVC 2019 will take about a month and until then it's not ideal, I agree. However I'd like to have this sorted out because I don't want to answer bugreports related to this twice a day. It's
... and I'd prefer the second option, if you understand :) |
Thanks for giving insights about how Magnum is expected to be used. And I do understand why you prefer the second option! That being said:
How about defining the |
OK, I see your point :) I tried to figure out what Thanks for all the contributions you did to the magnum packages, btw. |
I confirm that the documentation is not clear about the content of the variable. I don't have a Windows system at hand for now, but, no problem, I should be able to propose something in the coming days. Keeping you posted. |
(I'm the author of these libraries.)
In 71214e6 (PR #7025) a flag was added to make corrade build on MSVC 2019. This was done on Jun 25 (merged on Jul 7), however real MSVC 2019 support in corrade sources was introduced soon after (on Jul 5). Until then, MSVC 2019 wasn't officially supported by these libraries.
Setting this flag unconditionally unfortunately breaks the build of Magnum (an error about an unknown
_deg
literal inGenerateNormals.cpp
, a regression of MSVC 2019 compared to 2017) and besides that causes some code parts to be overly pessimistic about C++ standard support, leading to a reduced feature set. So I removed it, together with one additional fix for a typo in a flag.Note that
v2019.01
doesn't work with MSVC 2019, the next release (v2019.09
, scheduled to go out in September, mosra/magnum#340) will. I hope that's not a problem for your CIs.By the way there's a fixC2666.patch, is it still needed? I'm not aware of any crash related to
/permissive-
not being present, rather the opposite. I asked on #5126 but never got a reply.