[clang] Add support for sysroot-relative system header search paths (PR #82084)
Evan Wilde via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 16 17:00:13 PST 2024
================
@@ -3218,6 +3218,21 @@ static bool ParseHeaderSearchArgs(HeaderSearchOptions &Opts, ArgList &Args,
bool IsIndexHeaderMap = false;
bool IsSysrootSpecified =
Args.hasArg(OPT__sysroot_EQ) || Args.hasArg(OPT_isysroot);
+
+ // Expand a leading `=` to the sysroot if one was passed (and it's not a
+ // framework flag).
+ auto ConvertHeaderPath = [IsSysrootSpecified,
----------------
etcwilde wrote:
I don't love this name. Perhaps `ExpandHeaderSysroot`?
https://github.com/llvm/llvm-project/pull/82084
More information about the cfe-commits
mailing list