[webkit-reviews] review requested: [Bug 188986] [CMake] Add support for LTO builds : [Attachment 368700] Patch

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed May 1 13:40:17 PDT 2019

Christopher Reid <chris.reid at sony.com> has asked  for review:
Bug 188986: [CMake] Add support for LTO builds

Attachment 368700: Patch


--- Comment #1 from Christopher Reid <chris.reid at sony.com> ---
Created attachment 368700

  --> https://bugs.webkit.org/attachment.cgi?id=368700&action=review


Support enabling LTO when building with clang.
This patch only enables it for clang currently because GCC hits an internal
error when compiled with -flto.

This patch tries to use ld.lld when LTO_MODE is specified since gold doesn't
recognize llvm bitcode by default. The LLVMgold.so plugin would need to be used
for building LTO with clang and gold.

More information about the webkit-reviews mailing list