소스 검색

Merge pull request #15 from TheErk/fix-README-add_sanitizer_blacklist

Fix reference to sanitizer_add_blacklist_file in README.md
master
Matt Arsenault 8 년 전
committed by GitHub
부모
커밋
6947cff3a9
No known key found for this signature in database GPG 키 ID: 4AEE18F83AFDEB23
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      README.md

+ 2
- 2
README.md 파일 보기

@@ -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)


불러오는 중...
취소
저장