소스 검색

Add message warning for msan

[email protected] 7 년 전
부모
커밋
4c0925067a
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      CMakeLists.txt

+ 4 - 0
CMakeLists.txt

@@ -46,6 +46,10 @@ if (ENABLE_MSAN)
     add_if_flag_works(-fsanitize=memory CMAKE_C_FLAGS CMAKE_LINKER_FLAGS)
 endif()
 
+if (ENABLE_MSAN AND ENABLE_ASAN)
+    MESSAGE(WARNING "Compiling with both AddressSanitizer and MemorySanitizer is not recommended")
+endif()
+
 add_subdirectory(src release)
 
 if (${BUILD_EXAMPLES})