[clang] [flang] [Flang][Driver] Add -print-resource-dir command line flag to emit Flang's resource directory (PR #90886)

Andrzej WarzyƄski via cfe-commits cfe-commits at lists.llvm.org
Fri May 3 00:07:10 PDT 2024


================
@@ -5474,7 +5474,7 @@ def print_prog_name_EQ : Joined<["-", "--"], "print-prog-name=">,
   Visibility<[ClangOption, CLOption]>;
 def print_resource_dir : Flag<["-", "--"], "print-resource-dir">,
   HelpText<"Print the resource directory pathname">,
-  Visibility<[ClangOption, CLOption]>;
+  Visibility<[ClangOption, CLOption, FlangOption]>;
----------------
banach-space wrote:

You can use `HelpVariant` to and help text specific to Flang. Example:
* https://github.com/llvm/llvm-project/blob/6d44a1ef55b559e59d725b07ffe1da988b4e5f1c/clang/include/clang/Driver/Options.td#L813-L815

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


More information about the cfe-commits mailing list