exit after writing compile_commands

This commit is contained in:
Noah Swerhun 2024-03-06 15:34:15 -06:00
parent 5dfcfdd2a7
commit 1f0a940d95

View file

@ -2,6 +2,7 @@ use clap::Parser;
use std::{
fs::{read_to_string, write},
path::Path,
process::exit,
};
use toml::{Table, Value};
@ -179,6 +180,8 @@ fn main() {
&gen_compile_commands(&target_for_comp_cmds, &config.build_dir),
)
.unwrap_or_else(|e| panic!("fatal: could not write {file}: {e}"));
// no need to write ninja file
exit(0);
}
let build_dir = &config.build_dir;