[clang] [flang] [flang][driver] Add -fno-fortran-main (link time) option to remove Fortran_main from link line (PR #74139)

Michael Klemm via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 7 12:25:38 PST 2023


================
@@ -6345,6 +6345,10 @@ def J : JoinedOrSeparate<["-"], "J">,
   Group<gfortran_Group>,
   Alias<module_dir>;
 
+def no_fortran_main : Flag<["-"], "fno-fortran-main">,
+  Visibility<[FlangOption]>, Group<f_Group>,
+  HelpText<"Don't link in Fortran main">;
+
----------------
mjklemm wrote:

@banach-space 

```
let Visibility = [FlangOption] in {
def no_fortran_main : Flag<["-"], "fno-fortran-main">,
  Visibility<[FlangOption]>, Group<f_Group>,
  HelpText<"Don't link in Fortran main">;
} // let Visibility = [ FlangOption ]
```

Was that the suggested edit?  I guess  `-J` should not be be modified as part of the edit, right?

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


More information about the cfe-commits mailing list