[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:25:22 PDT 2026


================
@@ -826,10 +831,10 @@ def MP : Flag<["-"], "MP">, Group<M_Group>, Visibility<[ClangOption, CC1Option]>
     HelpText<"Create phony target for each dependency (other than main file)">,
     MarshallingInfoFlag<DependencyOutputOpts<"UsePhonyTargets">>;
 def MQ : JoinedOrSeparate<["-"], "MQ">, Group<M_Group>,
-  Visibility<[ClangOption, CC1Option]>,
+  Visibility<[ClangOption, CC1Option, FlangOption]>,
----------------
tarunprabhu wrote:

I think we should be consistent with clang for user-facing options, not necessarily for the underlying compiler. `-fc1` is not intended for end-users. If the option is completely handled by the driver, and is not required in the compiler, then there is no need to make it visible in `-fc1`.

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


More information about the flang-commits mailing list