[PATCH] D138183: [Driver] move FreeBSD header search path management to the driver
Fangrui Song via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 17 09:05:22 PST 2022
MaskRay added inline comments.
================
Comment at: clang/test/Driver/freebsd.cpp:48
+// DRIVER-PASS-INCLUDES: "-cc1" {{.*}}"-resource-dir" "[[RESOURCE:[^"]+]]"
+// DRIVER-PASS-INCLUDES: "-internal-isystem" "/usr/include/c++/v1"
+// DRIVER-PASS-INCLUDES: "-internal-isystem" "[[RESOURCE]]/include"
----------------
Place `"-internal-isystem` on the same line to ensure there are no extra includes in between.
Alternatively, use the `-NEXT: {{^}} xxx` pattern I use in linux-cross.cpp
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