[PATCH] D138183: [Driver] move FreeBSD header search path management to the driver

Matt Jacobson via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 16 22:07:29 PST 2022


mhjacobson created this revision.
mhjacobson added a project: clang.
Herald added subscribers: fedor.sergeev, krytarowski, emaste.
Herald added a project: All.
mhjacobson requested review of this revision.
Herald added subscribers: cfe-commits, MaskRay.

This matches OpenBSD, and it supports Swift's use of clang for its C interop functionality.  Recent changes to Swift use `AddClangSystemIncludeArgs()` to inspect the cc1 args; this doesn't work for platforms where cc1 adds standard include paths implicitly.

Also, clean up InitHeaderSearch, making it clearer which targets manage header search paths in the driver.

Add test.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D138183

Files:
  clang/lib/Driver/ToolChains/FreeBSD.cpp
  clang/lib/Driver/ToolChains/FreeBSD.h
  clang/lib/Lex/InitHeaderSearch.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138183.476004.patch
Type: text/x-patch
Size: 7978 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221117/3ff98b9c/attachment-0001.bin>


More information about the cfe-commits mailing list