Skip to content

Commit

Permalink
Merge pull request #15 from TheErk/fix-README-add_sanitizer_blacklist
Browse files Browse the repository at this point in the history
Fix reference to sanitizer_add_blacklist_file in README.md
  • Loading branch information
arsenm committed Nov 17, 2017
2 parents 6b9a849 + 0bdbdbf commit 6947cff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ Even C only targets may cause problems in certain situations. Some problems have

## Build targets with sanitizer support

To enable sanitizer support you simply have to add ``add_sanitizers(<TARGET>)`` after defining your target. To provide a sanitizer blacklist file you can use the ``add_sanitizer_blacklist(<FILE>)`` function:
To enable sanitizer support you simply have to add ``add_sanitizers(<TARGET>)`` after defining your target. To provide a sanitizer blacklist file you can use the ``sanitizer_add_blacklist_file(<FILE>)`` function:
```CMake
find_package(Sanitizers)
add_sanitizer_blacklist("blacklist.txt")
sanitizer_add_blacklist_file("blacklist.txt")
add_executable(some_exe foo.c bar.c)
add_sanitizers(some_exe)
Expand Down

0 comments on commit 6947cff

Please sign in to comment.