Binaries that are compiled multiple times can be problematic for several reasons:
- Binaries can have different contexts at each run, which will introduce unpredictability to your system
- Statically compiled languages, such as C/C++, can have different compiler versions on each run
- Third-party software may have different version specified on different compilation execution contexts
- Compiling binaries multiple times also leads to an inefficient deployment pipeline
- Recompiling binaries can also be time consuming
It is better to compile binaries once during compile time if you can do so.