[flang-commits] [clang] [flang] [flang] Implement -grecord-command-line for Flang (PR #181686)
Tarun Prabhu via flang-commits
flang-commits at lists.llvm.org
Mon Feb 23 12:03:30 PST 2026
================
@@ -0,0 +1,16 @@
+! This checks that -grecord-command-line is forwarded by the flang driver to
+! an FC1 -dwarf-debug-flags argument and that -gno-record-command-line
+! disables it, matching clang behavior.
+!
+! RUN: %flang -### -target x86_64-unknown-linux-gnu -grecord-command-line %s 2>&1 | FileCheck --check-prefix=GRECORD %s
----------------
tarunprabhu wrote:
Sorry, didn't notice this before, but the `-target` option is also unnecessary here.
In general, one should keep tests as minimal as possible so it is clear what exactly is being tested. In this case, the `-###` option ensures that no action is actually run, so there is no risk of failure because, say, the compiler was unable to determine the target to use.
https://github.com/llvm/llvm-project/pull/181686
More information about the flang-commits
mailing list