[all-commits] [llvm/llvm-project] 5007c7: [PS4][clang] Fix -funified-lto/-flto-unit default ...

Matthew Voss via All-commits all-commits at lists.llvm.org
Wed Jul 12 15:38:00 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5007c78ce0936824972ec6ba3cfa598192087ee1
      https://github.com/llvm/llvm-project/commit/5007c78ce0936824972ec6ba3cfa598192087ee1
  Author: Matthew Voss <matthew.voss at sony.com>
  Date:   2023-07-12 (Wed, 12 Jul 2023)

  Changed paths:
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/test/Driver/lto-unit.c

  Log Message:
  -----------
  [PS4][clang] Fix -funified-lto/-flto-unit default on PS4

If -funified-lto was specified but -flto was not, we would end up with a
situation where the driver thought that Unified LTO was enabled, but the
flag was not passed to the frontend. The check disabling -flto-unit for
PS4 should use the correct method to check for the target. This only
effects PS targets.




More information about the All-commits mailing list