[clang] [flang] [flang][driver] Add pre-processing type for Fortran pre-processed files (PR #104664)
Kareem Ergawy via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 4 20:41:38 PDT 2024
================
@@ -79,7 +79,14 @@ TYPE("c++-module-cpp-output", PP_CXXModule, INVALID, "iim", phases
TYPE("ada", Ada, INVALID, nullptr, phases::Compile, phases::Backend, phases::Assemble, phases::Link)
TYPE("assembler", PP_Asm, INVALID, "s", phases::Assemble, phases::Link)
TYPE("assembler-with-cpp", Asm, PP_Asm, "S", phases::Preprocess, phases::Assemble, phases::Link)
-TYPE("f95", PP_Fortran, INVALID, "i", phases::Compile, phases::Backend, phases::Assemble, phases::Link)
+
+// Note: The `phases::Preprocess` phase is added to ".i" (i.e.
+// Fortran pre-processed) files. The reason is that Fortran
+// pre-processed files need further pre-proecessing when they
+// include modules from non-standard paths. In particular, we
+// need to add the search paths for these modules when flang
+// needs to emits pre-processed files.
----------------
ergawy wrote:
Done.
https://github.com/llvm/llvm-project/pull/104664
More information about the cfe-commits
mailing list