This is an archive of the discontinued LLVM Phabricator instance.

[Driver] Use x86-64 libc++ headers with -m32
AbandonedPublic

Authored by phosek on May 5 2021, 6:57 PM.

Details

Summary

x86 is only used for the bootloader and we use x86-64 libc++ headers
in that case.

Diff Detail

Event Timeline

phosek created this revision.May 5 2021, 6:57 PM
phosek requested review of this revision.May 5 2021, 6:57 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 5 2021, 6:57 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
mcgrathr accepted this revision.May 6 2021, 11:19 AM

lgtm. I'm not sure what better to do that's especially cleaner, except actually just installing i386-fuchsia header subdirs. The easy way to do that would be to just build it all for the target, but we don't have fuchsia libc for that target so it would be a new configuration for bare metal libc++ and we don't actually have anybody who really needs libc++ compiled for that target, only the headers.

This revision is now accepted and ready to land.May 6 2021, 11:19 AM
phosek abandoned this revision.May 6 2021, 12:26 PM

After some further discussion, we've decided to generate a __config_site in our build only for the specific purpose.