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

via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 10 05:28:11 PST 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang-driver

Author: Leandro Lupori (luporl)

<details>
<summary>Changes</summary>

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


---
Full diff: https://github.com/llvm/llvm-project/pull/77605.diff


1 Files Affected:

- (modified) clang/lib/Driver/ToolChains/Flang.cpp (+1-3) 


``````````diff
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()) {

``````````

</details>


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


More information about the cfe-commits mailing list