From 807aa261361f4cd9153dda43c9cadbd3fcc659c5 Mon Sep 17 00:00:00 2001 From: Chuanqi Xu Date: Tue, 23 May 2023 13:26:16 +0800 Subject: [C++20] [Modules] Don't ignore -fmodule-file when we compile pcm files Close https://github.com/llvm/llvm-project/issues/62843. Previously when we compile .pcm files into .o files, the `-fmodule-file==` option is ignored. This is conflicted with our consensus in https://github.com/llvm/llvm-project/issues/62707. --- clang/lib/Frontend/ASTMerge.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/Frontend/ASTMerge.cpp') diff --git a/clang/lib/Frontend/ASTMerge.cpp b/clang/lib/Frontend/ASTMerge.cpp index 14d781c..057ea4f 100644 --- a/clang/lib/Frontend/ASTMerge.cpp +++ b/clang/lib/Frontend/ASTMerge.cpp @@ -48,7 +48,7 @@ void ASTMergeAction::ExecuteAction() { /*ShouldOwnClient=*/true)); std::unique_ptr Unit = ASTUnit::LoadFromASTFile( ASTFiles[I], CI.getPCHContainerReader(), ASTUnit::LoadEverything, Diags, - CI.getFileSystemOpts(), false); + CI.getFileSystemOpts(), CI.getHeaderSearchOptsPtr(), false); if (!Unit) continue; -- cgit v1.1