Skip to content

Instantly share code, notes, and snippets.

@springmeyer
springmeyer / clang-runtime-checks.sh
Last active December 10, 2015 19:18
Using clang++ 3.x -fsanitize
# Clang runtime checks
## gochas
- The compiler_rt code must be built (if compiling llvm/clang with
cmake you need cmake > 2.8.7)
- `-fsanitize=thread` and therefore the `tsan` symbols are not available on OS X
- Missing `asan` symbols can be solved on OS X by doing:
```
export DYLD_INSERT_LIBRARIES=/opt/llvm2/lib/clang/3.3/lib/darwin/libclang_rt.asan_osx_dynamic.dylib