浏览代码

Add message warning for msan

pull/505/head
maficccc@gmail.com 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})

正在加载...
取消
保存