[patch] Forward the -O options to the linker

Rafael EspĂ­ndola rafael.espindola at gmail.com
Mon Oct 20 09:35:04 PDT 2014


It is fairly common for -O to be passed to clang when linking and both
bfd and gold support -O options, but currently the driver doesn't
translate it and projects have to use -Wl,-O if they want to enable
those options. In fact, our own build pass -O3, but not -Wl,-O.

The attached patch translates and forwards the -O options to the linker.

Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.patch
Type: application/octet-stream
Size: 2899 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141020/3359e1e0/attachment.obj>


More information about the cfe-commits mailing list