mirror of
https://github.com/tree-sitter/tree-sitter.git
synced 2026-09-13 00:46:18 -04:00
Compiling a grammar with `-fsanitize=address` (or any other sanitizer) emits a module constructor in the parser object file that references runtime symbols like `__asan_init`. These runtime-resolved symbols are incompatible with `-Wl,--no-undefined`, which breaking sanitized test runs on clang. (gcc happens to paper over this by auto-linking libasan into the .so) To fix, detect `-fsanitize=` in the compile flags and omit `--no-undefined` in that case. |
||
|---|---|---|
| .. | ||
| src | ||
| theme | ||
| .gitignore | ||
| book.toml | ||
| package.nix | ||