[PATCH] D134936: [cmake] Export `LLVM_ENABLE_LTO`.

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 30 01:14:08 PDT 2022


nikic added a comment.

In D134936#3826263 <https://reviews.llvm.org/D134936#3826263>, @carlocab wrote:

> In D134936#3826244 <https://reviews.llvm.org/D134936#3826244>, @nikic wrote:
>
>> At least Fedora (and I'd expect other distros as well), will build everything with LTO, but then convert bitcode to ELF in any shipped object files or static archives.
>
> Ah, I didn't realise Fedora does this. Do you mind pointing me to where/how this is done? I had a look at `llvm.spec` for LLVM 15 but couldn't see it there.

This is done as part of `__spec_install_post` by https://src.fedoraproject.org/rpms/redhat-rpm-config/blob/rawhide/f/brp-llvm-compile-lto-elf.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D134936/new/

https://reviews.llvm.org/D134936



More information about the llvm-commits mailing list