mirror of
https://github.com/tree-sitter/tree-sitter.git
synced 2026-09-15 09:56:26 -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. |
||
|---|---|---|
| .. | ||
| assets | ||
| cli | ||
| creating-parsers | ||
| using-parsers | ||
| 3-syntax-highlighting.md | ||
| 4-code-navigation.md | ||
| 5-implementation.md | ||
| 6-contributing.md | ||
| 7-playground.md | ||
| index.md | ||
| SUMMARY.md | ||