Skip to content
Snippets Groups Projects
Unverified Commit 8b933e77 authored by Mat M's avatar Mat M Committed by GitHub
Browse files

Merge pull request #2460 from lioncash/volatile

CMakeLists: Specify /volatile:iso for MSVC
parents 3e8e335a c4d03f01
No related branches found
No related tags found
No related merge requests found
...@@ -27,6 +27,7 @@ if (MSVC) ...@@ -27,6 +27,7 @@ if (MSVC)
# /Zo - Enhanced debug info for optimized builds # /Zo - Enhanced debug info for optimized builds
# /permissive- - Enables stricter C++ standards conformance checks # /permissive- - Enables stricter C++ standards conformance checks
# /EHsc - C++-only exception handling semantics # /EHsc - C++-only exception handling semantics
# /volatile:iso - Use strict standards-compliant volatile semantics.
# /Zc:externConstexpr - Allow extern constexpr variables to have external linkage, like the standard mandates # /Zc:externConstexpr - Allow extern constexpr variables to have external linkage, like the standard mandates
# /Zc:inline - Let codegen omit inline functions in object files # /Zc:inline - Let codegen omit inline functions in object files
# /Zc:throwingNew - Let codegen assume `operator new` (without std::nothrow) will never return null # /Zc:throwingNew - Let codegen assume `operator new` (without std::nothrow) will never return null
...@@ -38,6 +39,7 @@ if (MSVC) ...@@ -38,6 +39,7 @@ if (MSVC)
/permissive- /permissive-
/EHsc /EHsc
/std:c++latest /std:c++latest
/volatile:iso
/Zc:externConstexpr /Zc:externConstexpr
/Zc:inline /Zc:inline
/Zc:throwingNew /Zc:throwingNew
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment