Allow target specific optimisation even if debug is enabled