summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2019-05-09 15:49:27 -0400
committerGravatar Lioncash2019-05-09 15:49:30 -0400
commitc4d03f01546119c4cf01743a63138519d10e2202 (patch)
tree907786f62f3bff5b190e9d4a72dbf4e3c77004ae /src
parentMerge pull request #2437 from lioncash/audctl (diff)
downloadyuzu-c4d03f01546119c4cf01743a63138519d10e2202.tar.gz
yuzu-c4d03f01546119c4cf01743a63138519d10e2202.tar.xz
yuzu-c4d03f01546119c4cf01743a63138519d10e2202.zip
CMakeLists: Specify /volatile:iso for MSVC
By default, MSVC doesn't use standards-compliant volatile semantics. This makes it behave in a standards-compliant manner, making expectations more uniform across compilers.
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index a1d87bbbc..7c7be31db 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -27,6 +27,7 @@ if (MSVC)
27 # /Zo - Enhanced debug info for optimized builds 27 # /Zo - Enhanced debug info for optimized builds
28 # /permissive- - Enables stricter C++ standards conformance checks 28 # /permissive- - Enables stricter C++ standards conformance checks
29 # /EHsc - C++-only exception handling semantics 29 # /EHsc - C++-only exception handling semantics
30 # /volatile:iso - Use strict standards-compliant volatile semantics.
30 # /Zc:externConstexpr - Allow extern constexpr variables to have external linkage, like the standard mandates 31 # /Zc:externConstexpr - Allow extern constexpr variables to have external linkage, like the standard mandates
31 # /Zc:inline - Let codegen omit inline functions in object files 32 # /Zc:inline - Let codegen omit inline functions in object files
32 # /Zc:throwingNew - Let codegen assume `operator new` (without std::nothrow) will never return null 33 # /Zc:throwingNew - Let codegen assume `operator new` (without std::nothrow) will never return null
@@ -38,6 +39,7 @@ if (MSVC)
38 /permissive- 39 /permissive-
39 /EHsc 40 /EHsc
40 /std:c++latest 41 /std:c++latest
42 /volatile:iso
41 /Zc:externConstexpr 43 /Zc:externConstexpr
42 /Zc:inline 44 /Zc:inline
43 /Zc:throwingNew 45 /Zc:throwingNew