This is an archive of the discontinued LLVM Phabricator instance.

[VE] Add standard include path and library path for C++
ClosedPublic

Authored by kaz7 on Dec 1 2020, 6:02 AM.

Details

Summary

We have a plan to add libcxx and libcxxabi for VE. In order to do so,
we need to compile cxx source code with bootstarapped header files.
This patch adds such expected path to make clang++ work, at least
not crash at the startup. Add regression test for that, also.

Diff Detail

Event Timeline

kaz7 created this revision.Dec 1 2020, 6:02 AM
kaz7 requested review of this revision.Dec 1 2020, 6:02 AM
simoll added inline comments.Dec 1 2020, 7:36 AM
clang/lib/Driver/ToolChains/VEToolchain.cpp
109

Do we want a test for this code path? Ie, checking system includes with the environment variable set.

kaz7 planned changes to this revision.Dec 1 2020, 8:10 PM
kaz7 added inline comments.
clang/lib/Driver/ToolChains/VEToolchain.cpp
109

Will do. Thanks.

kaz7 updated this revision to Diff 309231.Dec 3 2020, 5:11 AM

Add environment variable test as suggested.

simoll accepted this revision.Dec 3 2020, 5:12 AM

Thx!

This revision is now accepted and ready to land.Dec 3 2020, 5:12 AM
This revision was landed with ongoing or failed builds.Dec 3 2020, 5:23 AM
This revision was automatically updated to reflect the committed changes.
MaskRay added a subscriber: MaskRay.Dec 9 2020, 5:30 PM
MaskRay added inline comments.
clang/test/Driver/ve-toolchain.cpp
13

Many linker options tests should really be merged to save resources on developers.

This test has been failing for me for the last few days so I committed 880aa6ac668b0c0aefb7c7b831e7127c3c54ee9b to fix it and merge the --dynamic-linker with the other options.

90

One %clangxx command is sufficient to test the default-ness of -faddrsig.

The -fno-addrsig and -faddrsig have been tested by addrsig.c. Please don't duplicate.

kaz7 added a comment.Dec 9 2020, 5:46 PM

Thank you for suggestions. I'll submit patches to improve it.

clang/test/Driver/ve-toolchain.cpp
13

Thank you so much for fixing my problem.

90

I'll do that. Thank you for suggestion.