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

Andrzej WarzyƄski via flang-commits flang-commits at lists.llvm.org
Fri May 3 03:10:17 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:

> Do you suggest that the help message needs to be more verbose for Flang? 

Yes. Why not make it more user-friendly? It's a nice to have though.

> Print the resource directory pathname where Flang stores the 'lib' and 'include' folder

Looking at your reply earlier:

> I'd like to at least have it point to where the MODULE files live.

Shouldn't help text mention MODULEs?

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


More information about the flang-commits mailing list