浏览代码

Don't emit an error for deleting an object with a nonvirtual dtor.

We want that behaviour at runtime to make sure ubsan works
master
Sam Spilsbury 11 年前
父节点
当前提交
1ec58d4183
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      FindUBSan.cmake

+ 1
- 1
FindUBSan.cmake 查看文件

@@ -62,7 +62,7 @@ unset(CMAKE_REQUIRED_FLAGS)
# produces a broken package which doesn't include the ubsan
# compiler-rt, so check that it actually works with a linked program
# before trying to use it
set(CMAKE_REQUIRED_FLAGS "${UNDEFINED_BEHAVIOR_SANITIZER_FLAG}")
set(CMAKE_REQUIRED_FLAGS "${UNDEFINED_BEHAVIOR_SANITIZER_FLAG} -Wno-error=delete-non-virtual-dtor")

check_cxx_source_runs(
"


正在加载...
取消
保存