[SERVER-26699] Investigate MSVC flags for standards alignment Created: 19/Oct/16  Updated: 05/Apr/17  Resolved: 22/Dec/16

Status: Closed
Project: Core Server
Component/s: Build
Affects Version/s: None
Fix Version/s: 3.5.2

Type: Task Priority: Major - P3
Reporter: Andrew Morrow (Inactive) Assignee: Mark Benvenuto
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Platforms 2017-01-23
Participants:

 Description   

We should review the MSVC 2015 flags that control C++ dialect (along the lines of thinkgs like /volatile:iso), so that we are sure that we are using the compiler the way we want for C++14.



 Comments   
Comment by Githook User [ 22/Dec/16 ]

Author:

{u'username': u'markbenvenuto', u'name': u'Mark Benvenuto', u'email': u'mark.benvenuto@mongodb.com'}

Message: SERVER-26699 Enable MSVC flags for C++ standards alignment
Branch: master
https://github.com/mongodb/mongo/commit/32635c99eca93e74aa52ae49f004be12dda66a8a

Comment by Githook User [ 22/Dec/16 ]

Author:

{u'username': u'markbenvenuto', u'name': u'Mark Benvenuto', u'email': u'mark.benvenuto@mongodb.com'}

Message: SERVER-26699 Enable MSVC flags for C++ standards alignment
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/3678ed30efaa7f7e81cf3988933d491afdc26f00

Comment by Mark Benvenuto [ 20/Dec/16 ]

Here are a list of options we should enable. /GA may be nice to have.

Option Description Link
/GA may help TLS performance https://msdn.microsoft.com/en-us/library/yetwazx6.aspx
/utf-8 will validate our source is UTF-8 everywhere https://msdn.microsoft.com/en-us/library/mt708821.aspx
/Za Disable Language Extensions https://msdn.microsoft.com/en-us/library/0k0w269d.aspx
/Zc:rvalueCast Enforce type conversion rules https://msdn.microsoft.com/en-us/library/dn449507.aspx
/Zc:strictStrings Disable string literal type conversion https://msdn.microsoft.com/en-us/library/dn449508.aspx
Generated at Thu Feb 08 04:12:54 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.