Skip to content

[openNURBS] Update optimizer workaround condition from upstream#6154

Merged
mvieth merged 2 commits intoPointCloudLibrary:masterfrom
WangWeiLin-MV:opennurbs/msvc-optimizer-condition
Dec 25, 2024
Merged

[openNURBS] Update optimizer workaround condition from upstream#6154
mvieth merged 2 commits intoPointCloudLibrary:masterfrom
WangWeiLin-MV:opennurbs/msvc-optimizer-condition

Conversation

@WangWeiLin-MV
Copy link
Contributor

@WangWeiLin-MV WangWeiLin-MV commented Oct 17, 2024

@mvieth
Copy link
Member

mvieth commented Oct 17, 2024

Hi, so the main difference is that with this PR, there is no upper MSVC version for which optimizations are not turned off any more. On the one hand this is reasonable because we do not actually know right now when the problem will be fixed in MSVC, but on the other hand we would have to remember to come back to this file and set the upper version in the future.
@larshg Thoughts?

@WangWeiLin-MV WangWeiLin-MV marked this pull request as ready for review October 17, 2024 08:59
@larshg
Copy link
Contributor

larshg commented Oct 19, 2024

I don't have any strong opinion - but I think I would just leave it as is. Then we at least get "reminders" whenever one update Visual Studio.

@WangWeiLin-MV
Copy link
Contributor Author

What about plus 10, just like #5463

@WangWeiLin-MV
Copy link
Contributor Author

Just ping.

Copy link
Member

@mvieth mvieth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the delay. In November, Visual Studio 2022 v17.12 was released, where presumably _MSC_VER=1942. I did not yet have the chance to test with that version, but I assume #pragma optimize("", off) is still needed. So yes, setting the upper bound to 1949 is a good idea. Thanks!
@larshg We should probably update at least one of our Azure Windows pipelines to Visual Studio 2022, currently they both use 2019.

@mvieth mvieth merged commit cc08f81 into PointCloudLibrary:master Dec 25, 2024
@WangWeiLin-MV WangWeiLin-MV deleted the opennurbs/msvc-optimizer-condition branch December 26, 2024 02:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants