[PS4][clang] Fix the format of the LTO debug options passed to orbis-ld
authorMatthew Voss <matthew.voss@sony.com>
Wed, 5 Apr 2023 19:57:21 +0000 (12:57 -0700)
committerMatthew Voss <matthew.voss@sony.com>
Wed, 5 Apr 2023 19:57:21 +0000 (12:57 -0700)
commitc37b95b515a5c69b2050c8fd50f076368742c6cb
tree8e4cc957791fa154bef95532d45efa7e9b87c3f8
parent65c0134872c1e298ade176b5c84d86b4a058a85c
[PS4][clang] Fix the format of the LTO debug options passed to orbis-ld

Currently, we pass multiple LTO debug options to orbis-ld like this:

orbis-ld --lto=thin --lto-thin-debug-options=<arg1> --lto-thin-debug-options=<arg2> ...

When it should be like this:

orbis-ld --lto=thin "--lto-thin-debug-options= <arg1> <arg2>" ...

Differential Revision: https://reviews.llvm.org/D147546
clang/lib/Driver/ToolChains/PS4CPU.cpp
clang/test/Driver/ps4-ps5-linker.c