[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
Thu Nov 17 00:06:05 PST 2022


mhjacobson added inline comments.


================
Comment at: clang/test/Driver/freebsd.c:217
+
+// Check that the driver passes include paths to cc1 on FreeBSD.
+// RUN: %clang -### %s --target=x86_64-unknown-freebsd13.1 -r 2>&1 \
----------------
MaskRay wrote:
> Is this  sufficient? For Linux `linux-cross.cpp` checks a lot of directories to facilitate code refactoring.
On FreeBSD, the only directories included by default are

  - /usr/include/c++/v1 (in C++ mode)
  - <resource dir>/include
  - /usr/include

I suppose I can add checks for the first two.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D138183/new/

https://reviews.llvm.org/D138183



More information about the cfe-commits mailing list