This is an archive of the discontinued LLVM Phabricator instance.

[Driver] Support non-canonical triples with new runtime lib layout
Needs ReviewPublic

Authored by ro on Sep 7 2022, 2:13 AM.

Details

Reviewers
MaskRay
phosek
Summary

This is the companion patch to D133406, intended to get the ideas of clang of compiler-rt where runtime libs are located with -DLLVM_ENABLE_RUNTIMES in sync. Both patches were necessary to run the release builds/tests for Solaris/amd64 and Linux/sparc64.

Tested on amd64-pc-solaris2.11 and sparc64-unknown-linux-gnu.

This patch is not ready for prime time: right now it causes two regressions:

Clang :: Driver/baremetal.cpp
Clang :: Driver/print-libgcc-file-name-clangrt.c

where the patched driver uses -triple thumbv7m-vendor-none-eabi instead of the expected armv7m-vendor-none-eabi. I have not yet tried to investigate this in detail, just wanted to get the patch out for reference.

Diff Detail

Event Timeline

ro created this revision.Sep 7 2022, 2:13 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 7 2022, 2:13 AM
ro requested review of this revision.Sep 7 2022, 2:13 AM