Skip to content

Commit

Permalink
feat: refactor of the core of the procedure for that takes care about…
Browse files Browse the repository at this point in the history
… the commands generation

feat: reworked the cache loading/save
feat: added a metadata field for the cache
feat: improving the iteration times among different build processes
  • Loading branch information
TheRustifyer committed Jul 9, 2024
1 parent 215cea7 commit 6ae32ac
Show file tree
Hide file tree
Showing 23 changed files with 701 additions and 960 deletions.
80 changes: 0 additions & 80 deletions zork++/src/lib/bounds/mod.rs

This file was deleted.

15 changes: 1 addition & 14 deletions zork++/src/lib/cache/compile_commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ pub(crate) fn map_generated_commands_to_compilation_db(

let generated_commands = cache.get_all_commands_iter();
let mut compilation_db_entries: Vec<CompileCommand> =
Vec::with_capacity(cache.count_total_generated_commands());
// TODO: compilation_db_entries.push(latest_commands.linker)
Vec::with_capacity(cache.count_total_generated_commands()); // Without the linker one

for command in generated_commands {
compilation_db_entries.push(CompileCommand::from(command));
Expand Down Expand Up @@ -58,15 +57,3 @@ impl From<&SourceCommandLine> for CompileCommand {
}
}
}

// TODO review how the linker command line must be specified for the compile_commands.json
// impl From<&LinkerCommandLine> for CompileCommands {
// fn from(value: &LinkerCommandLine) -> Self {
// let value = value.clone();
// Self {
// directory: value.directory,
// file: value.filename,
// arguments: value.args,
// }
// }
// }
Loading

0 comments on commit 6ae32ac

Please sign in to comment.