[flang-commits] [flang] [flang] Fix cycle of build dependencies (PR #108132)

Peter Klausler via flang-commits flang-commits at lists.llvm.org
Tue Sep 10 19:00:29 PDT 2024


https://github.com/klausler created https://github.com/llvm/llvm-project/pull/108132

While trying to fix one build problem, I made things worse. This should clear things up.

>From 38ceaea4c6b05242946235ba034122b05626507f Mon Sep 17 00:00:00 2001
From: Peter Klausler <pklausler at nvidia.com>
Date: Tue, 10 Sep 2024 18:58:49 -0700
Subject: [PATCH] [flang] Fix cycle of build dependencies

While trying to fix one build problem, I made things worse.
This should clear things up.
---
 flang/tools/f18/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/flang/tools/f18/CMakeLists.txt b/flang/tools/f18/CMakeLists.txt
index 4670362f7a103c..9d7b8633958cb7 100644
--- a/flang/tools/f18/CMakeLists.txt
+++ b/flang/tools/f18/CMakeLists.txt
@@ -80,7 +80,7 @@ if (NOT CMAKE_CROSSCOMPILING)
         set(depends ${depends} ${FLANG_INTRINSIC_MODULES_DIR}/__fortran_ieee_exceptions.mod)
       endif()
     endif()
-    if(NOT ${filename} STREQUAL "__fortran_type_info")
+    if(NOT ${filename} STREQUAL "__fortran_type_info" AND NOT ${filename} STREQUAL "__fortran_builtins")
       set(depends ${depends} ${FLANG_INTRINSIC_MODULES_DIR}/__fortran_type_info.mod)
     endif()
 



More information about the flang-commits mailing list