Open rikkimax opened 1 year ago
I'm not sure I follow. How does the second recipe know to run tools/unicode.d
?
preBuildCommands
is currently the preferred approach and should not lead to rebuilds.
Use it as a dependency.
I'm seeing this in my code, preBuildCommands is indeed forcing a rebuild each time, it slows down an already slow build by quite noticeable amounts, I end up just disabling it.
We discussed this a bit recently on Discord (@WebFreak001) about expanding out commands including the ability to build + run D code due to issues surrounding $DC -run
not being available on all compilers. By adding the ability to specify them as maps instead of just a string. That could resolve this problem by allowing disabling of the triggering of a build.
It would be nice to not have to use
preBuildCommands
to describe a tool that you want to run as part of your build process.Adding a new
targetType
that would execute the executable after compilation (but not included in any (sub)package that depends upon it) would solve this.For instance instead of:
We could use:
Unfortunately,
preBuildCommands
kills my current approach as it will force it to be rebuilt as long as it's defined within the single package file.