This is an archive of the discontinued LLVM Phabricator instance.

[PS4][clang] Fix the format of the LTO debug options passed to orbis-ld
ClosedPublic

Authored by ormris on Apr 4 2023, 10:00 AM.

Details

Summary

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>" ...

Diff Detail

Event Timeline

ormris created this revision.Apr 4 2023, 10:00 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 4 2023, 10:00 AM
Herald added a subscriber: inglorion. · View Herald Transcript
ormris requested review of this revision.Apr 4 2023, 10:00 AM
probinson added inline comments.Apr 4 2023, 10:10 AM
clang/test/Driver/ps4-ps5-linker.c
11

The description says -lto-debug-options="arg1 arg2" (double-quotes wrapping the argument) but this is generating "-lto-debug-options= arg1 arg2" (double-quotes wrapping the whole option). Which is it that you really want?

ormris added inline comments.Apr 4 2023, 10:49 AM
clang/test/Driver/ps4-ps5-linker.c
11

Yes, both work.

probinson accepted this revision.Apr 5 2023, 9:44 AM

Fix the description/commit message and LGTM.

clang/test/Driver/ps4-ps5-linker.c
11

It's good that both work, I'm just saying the description doesn't match the code, and it would be better if it did.

This revision is now accepted and ready to land.Apr 5 2023, 9:44 AM
This revision was landed with ongoing or failed builds.Apr 5 2023, 1:00 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptApr 5 2023, 1:00 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript