Skip to content

Commit 446d10e

Browse files
authored
[Comgr] Fix build on Windows through msvc (llvm#1949)
1 parent 059c074 commit 446d10e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

amd/comgr/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,8 @@ elseif (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
228228
"/wd4624" #[[Suppress 'derived class' : destructor could not be generated because a base class destructor is inaccessible]]
229229
"/wd4267" #[[Suppress 'var' : conversion from 'size_t' to 'type', possible loss of data]]
230230
"/wd4291" #[[Suppress 'declaration' : no matching operator delete found; memory will not be freed if initialization throws an exception]]
231-
"/wd4146" #[[Suppress 'unary minus operator applied to unsigned type, result still unsigned]])
231+
"/wd4146" #[[Suppress 'unary minus operator applied to unsigned type, result still unsigned]]
232+
"/Zc:preprocessor" #[[Enable standards conforming preprocessor - https://learn.microsoft.com/en-us/cpp/build/reference/zc-preprocessor]])
232233
list(APPEND AMD_COMGR_PRIVATE_COMPILE_DEFINITIONS _HAS_EXCEPTIONS=0)
233234
endif()
234235

0 commit comments

Comments
 (0)