This is an archive of the discontinued LLVM Phabricator instance.

BareMetal: detect usr/include/c++/v1 path in sysroot
ClosedPublic

Authored by manojgupta on Sep 22 2022, 2:01 PM.

Details

Summary

Currently baremetal driver adds <sysroot>/include/c++/v1
for libc++ headers. However on ChromeOS, all include files
are inside <sysroot>/usr/include. So add
<sysroot>/usr/include/c++/v1 if it exists in baremetal driver.

Diff Detail

Event Timeline

manojgupta created this revision.Sep 22 2022, 2:01 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 22 2022, 2:01 PM
manojgupta requested review of this revision.Sep 22 2022, 2:01 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 22 2022, 2:01 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript

friendly ping for review.

MaskRay accepted this revision.Oct 3 2022, 2:55 PM

LGTM.

clang/test/Driver/baremetal.cpp
60

Delete unused -no-canonical-prefixes and -o %t.o

Change legacy -target to --target=

68

It's not necessary to test the linker name. -Bstatic is a good enough indicator.

This revision is now accepted and ready to land.Oct 3 2022, 2:55 PM
manojgupta updated this revision to Diff 465647.Oct 5 2022, 7:36 PM

address comments and check CI.

manojgupta marked 2 inline comments as done.Oct 5 2022, 7:36 PM
This revision was automatically updated to reflect the committed changes.