[all-commits] [llvm/llvm-project] d82df1: [PS4/PS5][Driver] Always pass LTO options to the l...
Edd Dawson via All-commits
all-commits at lists.llvm.org
Thu Jul 25 01:43:39 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d82df1b891fecae0af7de5e970b592ce37178a30
https://github.com/llvm/llvm-project/commit/d82df1b891fecae0af7de5e970b592ce37178a30
Author: Edd Dawson <edd.dawson at sony.com>
Date: 2024-07-25 (Thu, 25 Jul 2024)
Changed paths:
M clang/lib/Driver/ToolChains/PS4CPU.cpp
M clang/test/Driver/lto-jobs.c
M clang/test/Driver/ps4-linker.c
M clang/test/Driver/ps5-linker.c
M clang/test/Driver/unified-lto.c
Log Message:
-----------
[PS4/PS5][Driver] Always pass LTO options to the linker (#100423)
The driver doesn't know if LTO will occur at link time. That's
determined by the presence or absence of LLVM bitcode objects among
those ingested by the linker.
For this reason, LTO options for codegen etc must be passed to the
linker unconditionally. If LTO does not occur, these options have no
effect.
Also simplify the way LTO options are supplied to the PS4 linker.
`-lto-debug-options` and `-lto-thin-debug-options` are combined and
routed to the same place. So, always use the former, regardless of
full/thin LTO mode.
SIE tracker: TOOLCHAIN-16575
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list