travitch / build-bom

Dynamically discover the commands used to create a piece of software
Apache License 2.0
45 stars 8 forks source link

Fix two bugs preventing bitcode generation without -c #35

Closed travitch closed 2 years ago

travitch commented 2 years ago

The -c flag is "compile only" - build an object file but not an executable. For build commands that build an executable, we have to be a bit more careful when generating bitcode.

  1. We have to force "compile only" for bitcode generation
  2. Also, the logic for deciding whether or not to generate bitcode was incorrect when attempting to build an executable

Fixes #34