Skip to content

FindUBSan fails with newer Clang versions when -Wextra is specified in user's CMAKE_CXX_FLAGS #1

@smspillaz

Description

@smspillaz

FindUBSan fails when UndefinedBehaviourSanitizer is supported on newer clang versions because FindUBSan uses check_cxx_source_compiles and the compiler may (if the user specified -Wextra) emit a warning about deleting an object with a non-virtual destructor at compile time which is caught by -Werror.

Ideally, this particular warning should be disabled so that we can get the undefined behaviour at runtime.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions