This is an archive of the discontinued LLVM Phabricator instance.

[Driver] Unsupport --print-multiarch
ClosedPublic

Authored by MaskRay on Sep 1 2022, 4:59 PM.

Details

Summary
  • If GCC is configured with --disable-multi-arch, --print-multiarch output is an empty line.
  • If GCC is configured with --enable-multi-arch, --print-multiarch output may be a normalized triple or (on Debian, 'vendor' is omitted) x86_64-linux-gnu.

The Clang support D101400 just prints the Debian multiarch style triple
unconditionally, but the string is not really expected for non-Debian systems.

AIUI many Linux distributions and non-Linux OSes don't configure GCC with --enable-multi-arch.
Instead of getting us in the trouble of supporting all kinds of variants, drop the support as before D101400.

Close https://github.com/llvm/llvm-project/issues/51469

Diff Detail

Event Timeline

MaskRay created this revision.Sep 1 2022, 4:59 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 1 2022, 4:59 PM
MaskRay requested review of this revision.Sep 1 2022, 4:59 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 1 2022, 4:59 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
phosek accepted this revision.Sep 2 2022, 1:16 AM

LGTM

This revision is now accepted and ready to land.Sep 2 2022, 1:16 AM
This revision was automatically updated to reflect the committed changes.