File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -219,4 +219,10 @@ These include:
219
219
```
220
220
221
221
**It is highly recommended that you test any code which relies on the C (or C++) bindings in
222
- valgrind, MemorySanitizer, or other similar tools to ensure correctness.**
222
+ valgrind, AddressSanitizer, MemorySanitizer, or other similar tools to ensure correctness.**
223
+
224
+ Note that after running `genbindings.sh`, if possible, the static lib in target/debug (eg
225
+ target/debug/liblightning.a) will be linked with address sanitizer. In order to build against it,
226
+ you will need to link with `clang` with `-fsanitize=address` with the same version of LLVM as
227
+ `rustc`'s LLVM. If genbindings.sh failed to find a matching `clang` or you are building on an
228
+ unsupported platform, a warning noting that address sanitizer is not available will be printed.
You can’t perform that action at this time.
0 commit comments