SWDEV-521262 - Adding MSVC compiler options to fix the conflict with SC module while building hip in debug. (#24)

This commit is contained in:
Patel, Jaydeepkumar
2025-04-10 02:55:58 -07:00
committed by GitHub
parent 8531cd3bbe
commit 997519fa94
+4
View File
@@ -28,6 +28,10 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
add_compile_options("/wd4267" "/wd4244" "/wd4996")
string(REPLACE "/GR" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
string(REPLACE "/W3" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
add_compile_options(/MTd)
add_compile_options(-D_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH)
endif()
endif()
option(CLR_BUILD_HIP "Build HIP" OFF)
option(CLR_BUILD_OCL "Build OCL" OFF)