[flang-commits] [flang] [flang] Fix shared libs build for alloca change. (PR #95597)

via flang-commits flang-commits at lists.llvm.org
Fri Jun 14 13:33:14 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-flang-codegen

@llvm/pr-subscribers-flang-fir-hlfir

Author: Vijay Kandiah (VijayKandiah)

<details>
<summary>Changes</summary>

My [recent change](https://github.com/llvm/llvm-project/commit/c0cba5198155dba246ddd5764f57595d9bbbddef) broke shared library builds. This update to flang CodeGen CMakeLists.txt fixes shared builds.

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


1 Files Affected:

- (modified) flang/lib/Optimizer/CodeGen/CMakeLists.txt (+1) 


``````````diff
diff --git a/flang/lib/Optimizer/CodeGen/CMakeLists.txt b/flang/lib/Optimizer/CodeGen/CMakeLists.txt
index 879bc28d017a3..650448eee1099 100644
--- a/flang/lib/Optimizer/CodeGen/CMakeLists.txt
+++ b/flang/lib/Optimizer/CodeGen/CMakeLists.txt
@@ -27,6 +27,7 @@ add_flang_library(FIRCodeGen
   MLIRMathToLLVM
   MLIRMathToLibm
   MLIROpenMPToLLVM
+  MLIROpenACCDialect
   MLIRBuiltinToLLVMIRTranslation
   MLIRLLVMToLLVMIRTranslation
   MLIRTargetLLVMIRExport

``````````

</details>


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


More information about the flang-commits mailing list