[flang-commits] [flang] [Flang] NFC: Update test to work on Mac (PR #144253)
Kiran Chandramohan via flang-commits
flang-commits at lists.llvm.org
Sun Jun 15 01:07:19 PDT 2025
https://github.com/kiranchandramohan created https://github.com/llvm/llvm-project/pull/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>`.
>From f05457936d74b7885a9f6f916fafd86be4447af9 Mon Sep 17 00:00:00 2001
From: Kiran Chandramohan <kiran.chandramohan at arm.com>
Date: Sun, 15 Jun 2025 08:59:49 +0100
Subject: [PATCH] [Flang] NFC: Update test to work on Mac
%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.
---
flang/test/Preprocessing/bug518.F | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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