mehdi_amini added a comment. (By the way, this is what is done on Darwin: the -O flag is *ignored* for the link step invocation, because we couldn't find a "right way" of correctly honoring it that would be logical to the user in all case). https://reviews.llvm.org/D30920