[clang] [clang][Darwin] Remove legacy framework search path logic in the frontend (PR #138234)
Ian Anderson via cfe-commits
cfe-commits at lists.llvm.org
Fri May 2 11:50:26 PDT 2025
================
@@ -2577,6 +2577,27 @@ void AppleMachO::AddClangSystemIncludeArgs(
}
}
+void DarwinClang::AddClangSystemIncludeArgs(
+ const llvm::opt::ArgList &DriverArgs,
+ llvm::opt::ArgStringList &CC1Args) const {
+ AppleMachO::AddClangSystemIncludeArgs(DriverArgs, CC1Args);
+
+ if (DriverArgs.hasArg(options::OPT_nostdinc) ||
----------------
ian-twilightcoder wrote:
This is a change in behavior. Previoiusly `-Xclang -nostdsysteminc` would additionally remove the framework search paths. However, I wanted to make the default framework include paths be consistent with the default header include paths. I don't believe there's a practical use case to keep the default header search paths but remove the default framework search paths, which is what `-Xclang -nostdsysteminc` would do. I think the previous code used `HeaderSearchOptions.UseStandardSystemIncludes` because that's all you get at that level of the code.
https://github.com/llvm/llvm-project/pull/138234
More information about the cfe-commits
mailing list