[flang-commits] [flang] [flang] Fix Preprocessing/bug129131.F test on Darwin (PR #123094)

Leandro Lupori via flang-commits flang-commits at lists.llvm.org
Wed Jan 15 09:40:49 PST 2025


https://github.com/luporl created https://github.com/llvm/llvm-project/pull/123094

On Darwin, the --isysroot flag must also be specified. This
happens when either %flang or %flang_fc1 is expanded. As -fc1 must
be the first argument, %flang_fc1 must be used in tests, instead of
%flang -fc1.


>From 720dbb799093e2e933877f54161bcbbdde00edc3 Mon Sep 17 00:00:00 2001
From: Leandro Lupori <leandro.lupori at linaro.org>
Date: Wed, 15 Jan 2025 14:33:33 -0300
Subject: [PATCH] [flang] Fix Preprocessing/bug129131.F test on Darwin

On Darwin, the --isysroot flag must also be specified. This
happens when either %flang or %flang_fc1 is expanded. As -fc1 must
be the first argument, %flang_fc1 must be used in tests, instead of
%flang -fc1.
---
 flang/test/Preprocessing/bug129131.F | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/flang/test/Preprocessing/bug129131.F b/flang/test/Preprocessing/bug129131.F
index 00aba5da2c7cbd..43bbfdc232f92f 100644
--- a/flang/test/Preprocessing/bug129131.F
+++ b/flang/test/Preprocessing/bug129131.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: PRINT *, 2_4
 ! CHECK: PRINT *, 1_4
 #define a ,3



More information about the flang-commits mailing list