[clang] [flang] [flang] Add depdendent-lib option to flang -fc1 on Windows (PR #72121)

David Truby via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 13 17:34:08 PST 2023


================
@@ -303,6 +323,9 @@ bool CodeGenAction::beginSourceFileAction() {
   Fortran::parser::Program &parseTree{*ci.getParsing().parseTree()};
   lb.lower(parseTree, ci.getInvocation().getSemanticsContext());
 
+  // Add dependent libraries
+  addDepdendentLibs(*mlirModule, ci);
----------------
DavidTruby wrote:

The consumer is that an LLVMIR dialect operation should be added to the MLIR module (in the global module scope) that will eventually get lowered by the standard MLIR LLVM dialect to LLVM ir transform. I don’t think it particularly matters where in the compilation flow that gets added as it doesn’t affect or get affected by any other transformation. I’m happy to add it later if you have a suggestion where it should be done, I mostly did it here because you still have all the information to construct the list of linker options without needing to pass any information further on.

https://github.com/llvm/llvm-project/pull/72121


More information about the cfe-commits mailing list