Skip to content

Commit 654bce6

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 0719d9e commit 654bce6

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
@@ -54,6 +54,7 @@ function(tgui_set_global_compile_flags target)
5454
/Zc:__cplusplus
5555
/Zc:preprocessor
5656
/Zc:inline
57+
/volatile:iso
5758
)
5859
else()
5960
target_compile_options(${target} PRIVATE

0 commit comments

Comments
 (0)