compor / llvm-ir-cmake-utils

LLVM IR CMake utils for bitcode file manipulation by opt and friends
GNU Lesser General Public License v2.1
68 stars 14 forks source link

Allow custom 'clean' targets for bitcode generation to work with other generators #11

Closed compor closed 6 years ago

compor commented 6 years ago

Currently the use of ADDITIONAL_MAKE_CLEAN_FILES for marking custom generated files in the build directory to be clean up, only works for the make generator. Use a custom target to work around and allow proper clean-up when other generators are used (e.g. ninja).

Also, see this for why there is currently no way to add dependencies to the special clean target.

compor commented 6 years ago

It turns out that dependency resolution takes care of target clean up (at least for both cmake and ninja) :sunny:. So, there is no use for redundant (and generator-specific) rules. These are only needed for files generated during the build system configuration (e.g. configure_file).

resolved in commit 8b7f99c