Don't generate msg_includes.h in parallel with bindgen generation.

This commit is contained in:
Martin Dahl 2023-06-26 22:23:51 +02:00
parent fd8f466c6e
commit f5f41baa25
1 changed files with 1 additions and 3 deletions

View File

@ -90,12 +90,10 @@ fn generate_bindings(bindgen_dir: &Path, msg_list: &[RosMsg]) {
// Run codegen in parallel.
rayon::scope(|scope| {
scope.spawn(|_| {
generate_includes(bindgen_dir, msg_list);
let bindings = generate_bindings_file(bindgen_dir);
generate_constants(bindgen_dir, msg_list, &bindings);
});
scope.spawn(|_| {
generate_includes(bindgen_dir, msg_list);
});
scope.spawn(|_| {
generate_introspecion_map(bindgen_dir, msg_list);
});