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

Andrzej WarzyƄski via flang-commits flang-commits at lists.llvm.org
Wed Nov 15 00:25:14 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);
----------------
banach-space wrote:

Apologies, I thought that this was [FrontendAction::beginSourceFile](https://github.com/banach-space/llvm-project/blob/d0b00b2c494b44fd1da7964b9334633215765c7f/flang/lib/Frontend/FrontendAction.cpp#L38) rather than `CodeGenAction::beginSourceFileAction()`.

I think that keeping it here is fine. Like you said, the ordering in this case doesn't matter that much.

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


More information about the flang-commits mailing list