[flang-commits] [flang] dfb14b6 - [Flang] NFC: Update test to work on Mac (#144253)

via flang-commits flang-commits at lists.llvm.org
Mon Jun 16 08:55:43 PDT 2025


Author: Kiran Chandramohan
Date: 2025-06-16T16:55:40+01:00
New Revision: dfb14b65bc0a277f920c797b4557e79685055b4f

URL: https://github.com/llvm/llvm-project/commit/dfb14b65bc0a277f920c797b4557e79685055b4f
DIFF: https://github.com/llvm/llvm-project/commit/dfb14b65bc0a277f920c797b4557e79685055b4f.diff

LOG: [Flang] NFC: Update test to work on Mac (#144253)

`%flang` expands to `flang -isysroot <SDK location>` in Mac and probably
other OS as well. `fc1` is only accepted as the first argument and hence
in this case it fails.

Use the `%flang_fc1` option to correctly expand to `flang -fc1 -isysroot
<SDK location>`.

Added: 
    

Modified: 
    flang/test/Preprocessing/bug518.F

Removed: 
    


################################################################################
diff  --git a/flang/test/Preprocessing/bug518.F b/flang/test/Preprocessing/bug518.F
index 346e04cc56d38..0b680dd5751b9 100644
--- a/flang/test/Preprocessing/bug518.F
+++ b/flang/test/Preprocessing/bug518.F
@@ -1,4 +1,4 @@
-! RUN: %flang -fc1 -fdebug-unparse %s 2>&1 | FileCheck %s
+! RUN: %flang_fc1 -fdebug-unparse %s 2>&1 | FileCheck %s
 ! CHECK: k=1_4
                         k=                                            1_99999999
      &4


        


More information about the flang-commits mailing list