Open kaijajan opened 5 years ago
I think this is due to parallel builds generating a disordered output. See how below all -c/-o/strip are clustered, whereas above they are in the correct order for each artifact. If you use -Bwnk flags for make, you should be able to generate the output with -j1 in a reasonable amount of time - therefore I would recommend that you avoid unnecessary concurrency. compiledb is quite fragile when it comes to parsing those make outputs.
@kaijajan
The make
's option --output-sync would help you.
I noticed different compilation database generated while using parallel build. I use the following commands to generate build_log.txt
I fetch part of the built log did not generated in compile_commands.json and use both of them run with compiledb. compiledb generates nothing between squares if build log is parallel one. but done well with normal one.
part of built log without -jN, build_log_j1.txt
part of built log with -jN, build_log_j8.txt
here are the commands i use to generate database
two files are basically the same except the order