================
@@ -180,8 +180,9 @@ static void appendSubframeworkPaths(Module *Mod,
OptionalFileEntryRef ModuleMap::findHeader(
Module *M, const Module::UnresolvedHeaderDirective &Header,
SmallVectorImpl<char> &RelativePathName, bool &NeedsFramework) {
- // Search for the header file within the module's home directory.
- auto Directory = M->Directory;
+ // Search for the header file within the module's home directory
+ // or the builtin include dir if this is a builtin header.
+ auto Directory = Header.HasBuiltinHeader ? BuiltinIncludeDir : M->Directory;
----------------
jansvoboda11 wrote:
Is this change still needed?
https://github.com/llvm/llvm-project/pull/68023
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits