================ @@ -348,6 +348,10 @@ bool ModuleMap::resolveAsBuiltinHeader( if (!File) return false; + // Ensure the path to the module directory is absolute, otherwise + // builtin headers will fail to resolve when using relative resource + // directory paths without a -I. + llvm::sys::fs::make_absolute(Path); ---------------- benlangmuir wrote:
This should be using `FileManager::makeAbsolutePath` to ensure `-working-directory` is handled correctly, and so that it goes through VFS makeAbsolute instead of using the process working directory. https://github.com/llvm/llvm-project/pull/68023 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits