[flang-commits] [clang] [flang] [flang][driver] Support Makefile dependency generation (PR #209379)

Tarun Prabhu via flang-commits flang-commits at lists.llvm.org
Wed Jul 15 06:22:47 PDT 2026


================
@@ -1528,7 +1533,7 @@ def dM : Flag<["-"], "dM">, Group<d_Group>, Visibility<[ClangOption, CC1Option,
   HelpText<"Print macro definitions in -E mode instead of normal output">;
 def dead__strip : Flag<["-"], "dead_strip">;
 def dependency_file : Separate<["-"], "dependency-file">,
-  Visibility<[ClangOption, CC1Option]>,
+  Visibility<[ClangOption, CC1Option, FC1Option]>,
----------------
tarunprabhu wrote:

If I understand you correctly, `clang -MF` and `clang -dependency-file` behave identically. If that is the case, then it is better to be consistent with clang and allow the option in the driver as well.

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


More information about the flang-commits mailing list