travitch / build-bom

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

Build systems that delete directories can discard generated bitcode #2

Closed travitch closed 3 years ago

travitch commented 3 years ago

When build systems place build outputs in temporary directories, build-bom generate-bitcode will place bitcode side-by-side with those outputs. When the build system cleans up temporary directories, the bitcode can be lost.

To fix this, we should add an extra (optional) command line flag to specify a prefix to store bitcode in. The directory structure in the prefix should mirror the real filesystem, for simplicity.

travitch commented 3 years ago

This is not actually an issue - build-bom actually attaches generated bitcode directly to ELF files (for now)