[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


================
@@ -0,0 +1,3 @@
+! RUN: %flang -print-resource-dir -resource-dir=%S/Inputs/resource_dir \
+! RUN:  | FileCheck -check-prefix=PRINT-RESOURCE-DIR -DFILE=%S/Inputs/resource_dir %s
----------------
banach-space wrote:

You should be able to avoid repeating "%S/Inputs/resource_dir" if you use `define`/`redefine`:
* example: https://github.com/llvm/llvm-project/blob/6d44a1ef55b559e59d725b07ffe1da988b4e5f1c/mlir/test/Integration/Dialect/Linalg/CPU/ArmSVE/matmul.mlir#L1-L14
* docs: https://llvm.org/docs/TestingGuide.html (search for `DEFINE`)

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


More information about the cfe-commits mailing list