fix(cli): keep default cc flags in build

This commit is contained in:
ObserverOfTime 2024-03-18 00:14:06 +02:00 committed by Amaan Qureshi
parent 90ba5256d1
commit a2d2da314d
4 changed files with 59 additions and 76 deletions

View file

@ -256,7 +256,7 @@ impl Generator {
.count()
+ 1;
let constant_name = if let Some(symbol) = symbol {
format!("{}_character_set_{}", self.symbol_ids[&symbol], count)
format!("{}_character_set_{}", self.symbol_ids[symbol], count)
} else {
format!("extras_character_set_{}", count)
};

View file

@ -500,7 +500,7 @@ fn run() -> Result<()> {
}
(true, false) => &["TREE_SITTER_REUSE_ALLOCATOR"],
(false, true) => &["TREE_SITTER_INTERNAL_BUILD"],
(false, false) => &[""],
(false, false) => &[],
};
let config = Config::load(None)?;