This is an archive of the discontinued LLVM Phabricator instance.

[Driver] move DragonFly header search path management to the driver
ClosedPublic

Authored by brad on Aug 20 2023, 4:22 PM.

Details

Summary

As has been done for other OS's. Move the header path management to the driver.

Also I noticed with https://reviews.llvm.org/D89690 that the library paths were updated for GCC 8, but
the C++ header path was not. So I also fixed that while here.

Diff Detail

Event Timeline

brad created this revision.Aug 20 2023, 4:22 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 20 2023, 4:22 PM
brad requested review of this revision.Aug 20 2023, 4:22 PM
brad updated this revision to Diff 551872.Aug 20 2023, 5:09 PM

Also use concat() in addLibStdCxxIncludePaths().

brad added a reviewer: dim.Aug 20 2023, 5:16 PM
brad updated this revision to Diff 553310.Aug 24 2023, 5:12 PM

Rebase.

brad added a comment.Aug 28 2023, 5:18 PM

David? Frederic?

brad updated this revision to Diff 554140.Aug 28 2023, 7:45 PM

Remove C_INCLUDE_DIRS bits.

MaskRay added inline comments.Aug 29 2023, 7:43 PM
clang/lib/Lex/InitHeaderSearch.cpp
331

5.0 becomes 8.0 after move?

brad added inline comments.Aug 29 2023, 7:55 PM
clang/lib/Lex/InitHeaderSearch.cpp
331

5.0 becomes 8.0 after move?

Read what the summary says. The current path is wrong.

MaskRay accepted this revision.Aug 29 2023, 8:11 PM

Looks great!

clang/lib/Lex/InitHeaderSearch.cpp
331

Thank you! If this has been broken for so long, it means they don't care about libstdc++? I think we can just remove the include path...

This revision is now accepted and ready to land.Aug 29 2023, 8:11 PM
This revision was landed with ongoing or failed builds.Aug 29 2023, 8:19 PM
This revision was automatically updated to reflect the committed changes.