[all-commits] [llvm/llvm-project] 15e734: [flang] Disable LTO when building the flang runtime

David Truby via All-commits all-commits at lists.llvm.org
Mon Jan 9 06:35:53 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 15e734fe6c6ee96a24574773f0c7492fd4bbb889
      https://github.com/llvm/llvm-project/commit/15e734fe6c6ee96a24574773f0c7492fd4bbb889
  Author: David Truby <david.truby at arm.com>
  Date:   2023-01-09 (Mon, 09 Jan 2023)

  Changed paths:
    M flang/lib/Decimal/CMakeLists.txt
    M flang/runtime/CMakeLists.txt

  Log Message:
  -----------
  [flang] Disable LTO when building the flang runtime

When building the flang runtime if LTO is enabled the archive file
contains LLVM IR rather than object code. Currently flang is not
LTO aware so cannot link this file to compiled Fortran code.

This patch disables LTO when building the flang runtime to avoid
this issue.

Differential Revision: https://reviews.llvm.org/D140016




More information about the All-commits mailing list