add compiler sanitizers support

Review Request #119968 - Created Aug. 28, 2014 and submitted

Information
Mathieu Tarral
extra-cmake-modules
Reviewers
buildsystem, extracmakemodules

This module uses a cached variable to hold a list of compiler sanitizers
to enable.
It parses that list, checks the sanitizer desired options, then checks the compiler
support and set the appropriate flags.

cmake -DECM_ENABLE_SANITIZERS=address;undefined
make VERBOSE=1

Issues

  • 3
  • 1
  • 0
  • 4
Description From Last Updated
I don't think we need this, link_libraries does this job. Albert Astals Cid Albert Astals Cid
Obviously asan needs to be replaced here by a proper variable depending on the saniitizer Albert Astals Cid Albert Astals Cid
More documentation. What sanitizers are supported? Provide an example cmake command. Say how to use the module (I know it's ... Alex Merry Alex Merry
Albert Astals Cid
Albert Astals Cid
Mathieu Tarral
Albert Astals Cid
Albert Astals Cid
Albert Astals Cid
Mathieu Tarral
Albert Astals Cid
Albert Astals Cid
Alex Merry
Mathieu Tarral
Albert Astals Cid
Albert Astals Cid
Mathieu Tarral
Review request changed

Status: Closed (submitted)

Loading...