In
computer programming,
conditional compilation is compilation implementing methods which allow the
compiler to produce differences in the executable produced controlled by parameters that are provided during compilation. This technique is commonly used when these differences are needed to run the software on different
platforms, or with different versions of required
libraries or
hardware.