Skip to content

Commit 761d9cb

Browse files
committed
Use /volatile:iso when building with MSVC
Although volatile is not used much currently (and it shouldn't be) it's nice to know that it will behave according to the standard (and like other compilers do).
1 parent 726195a commit 761d9cb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

cmake/Macros.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ function(tgui_set_global_compile_flags target)
5555
/Zc:preprocessor
5656
/Zc:inline
5757
/Zc:throwingNew
58+
/volatile:iso
5859
)
5960
else()
6061
target_compile_options(${target} PRIVATE

0 commit comments

Comments
 (0)