[flang-commits] [flang] [Flang] Store only options in FLANG_COMPILER_OPTIONS_STRING (PR #201278)

Tarun Prabhu via flang-commits flang-commits at lists.llvm.org
Wed Jun 3 03:45:44 PDT 2026


================
@@ -1,6 +1,6 @@
 ! RUN: %flang -S -emit-llvm -o - %s | FileCheck %s
 ! Test communication of COMPILER_OPTIONS from flang to flang -fc1.
-! CHECK: [[OPTSVAR:@_QQclX[0-9a-f]+]] = {{[a-z]+}} constant [[[OPTSLEN:[0-9]+]] x i8] c"{{.*}}flang{{(\.exe)?}} {{.*}}-S -emit-llvm -o - {{.*}}compiler-options.f90"
+! CHECK: [[OPTSVAR:@_QQclX[0-9A-F]+]] = {{[a-z]+}} constant [[[OPTSLEN:[0-9]+]] x i8] c"-S -emit-llvm -o -"
----------------
tarunprabhu wrote:

Would it be safer to include both `A-F` and `a-f` in the regex above? Or are we guaranteed to have upper case characters only?

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


More information about the flang-commits mailing list