[clang] [flang] Fix fveclib on Darwin (PR #77605)

Leandro Lupori via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 10 05:27:43 PST 2024


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

Fixes fveclib.f90 and fveclib-codegen.f90 tests, that were failing
on Darwin.


>From 3e165d363b6211e4625056671d548037533ed819 Mon Sep 17 00:00:00 2001
From: Leandro Lupori <leandro.lupori at linaro.org>
Date: Wed, 10 Jan 2024 10:24:52 -0300
Subject: [PATCH] [flang] Fix fveclib on Darwin

Fixes fveclib.f90 and fveclib-codegen.f90 tests, that were failing
on Darwin.
---
 clang/lib/Driver/ToolChains/Flang.cpp | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/clang/lib/Driver/ToolChains/Flang.cpp b/clang/lib/Driver/ToolChains/Flang.cpp
index 41eaad3bbad0a3..3de5cf946bc9a8 100644
--- a/clang/lib/Driver/ToolChains/Flang.cpp
+++ b/clang/lib/Driver/ToolChains/Flang.cpp
@@ -352,12 +352,10 @@ void Flang::addTargetOptions(const ArgList &Args,
         if (A->getValue() == StringRef{"Accelerate"}) {
           CmdArgs.push_back("-framework");
           CmdArgs.push_back("Accelerate");
-          A->render(Args, CmdArgs);
         }
       }
-    } else {
-      A->render(Args, CmdArgs);
     }
+    A->render(Args, CmdArgs);
   }
 
   if (Triple.isKnownWindowsMSVCEnvironment()) {



More information about the cfe-commits mailing list