[llvm] [flang][CMake] Add missing dependency to generate Fortran module files (PR #91517)
Michael Klemm via llvm-commits
llvm-commits at lists.llvm.org
Wed May 8 11:32:27 PDT 2024
https://github.com/mjklemm created https://github.com/llvm/llvm-project/pull/91517
Fixes bug https://github.com/llvm/llvm-project/issues/90769. Many thanks to @Meinersbur for providing the initial thought and solution to this.
>From a3030bd77c3aed6a405331b8307bdf66f21f4e51 Mon Sep 17 00:00:00 2001
From: Michael Klemm <michael.klemm at amd.com>
Date: Wed, 8 May 2024 20:28:19 +0200
Subject: [PATCH] Add missing dependency to generate Fortran module files
---
llvm/runtimes/CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/runtimes/CMakeLists.txt b/llvm/runtimes/CMakeLists.txt
index 3020ba72f4a60..29112ccb6df15 100644
--- a/llvm/runtimes/CMakeLists.txt
+++ b/llvm/runtimes/CMakeLists.txt
@@ -432,7 +432,7 @@ if(runtimes)
# TODO: This is a workaround until flang becomes a first-class project
# in llvm/CMakeList.txt. Until then, this line ensures that flang-new is
# built before "openmp" is built as a runtime project.
- list(APPEND extra_deps "flang-new")
+ list(APPEND extra_deps "flang-new" "module_files")
endif()
foreach(dep opt llvm-link llvm-extract clang clang-offload-packager)
if(TARGET ${dep})
More information about the llvm-commits
mailing list