refactor: rename TS_REUSE_ALLOCATOR flag

TREE_SITTER_REUSE_ALLOCATOR is more consistent
This commit is contained in:
ObserverOfTime 2024-02-27 21:41:11 +02:00 committed by Amaan Qureshi
parent 46520eda58
commit 502dacf220
3 changed files with 3 additions and 5 deletions

View file

@ -603,7 +603,7 @@ impl Loader {
// Always use the same allocator in the CLI as any scanner, useful for debugging and
// tracking memory leaks in tests.
#[cfg(not(any(target_os = "macos", target_os = "ios")))]
command.arg("-DTS_REUSE_ALLOCATOR");
command.arg("-DTREE_SITTER_REUSE_ALLOCATOR");
let output = command.output().with_context(|| {
format!("Failed to execute the C compiler with the following command:\n{command:?}")