[flang-commits] [flang] 6b2bab2 - [flang] Avoid module dependency failure when __fortran_buitlin is updated

Valentin Clement via flang-commits flang-commits at lists.llvm.org
Thu Mar 14 17:27:49 PDT 2024


Author: Valentin Clement
Date: 2024-03-14T17:27:20-07:00
New Revision: 6b2bab2839c7a379556a10287034bd55906d7094

URL: https://github.com/llvm/llvm-project/commit/6b2bab2839c7a379556a10287034bd55906d7094
DIFF: https://github.com/llvm/llvm-project/commit/6b2bab2839c7a379556a10287034bd55906d7094.diff

LOG: [flang] Avoid module dependency failure when __fortran_buitlin is updated

Added: 
    

Modified: 
    flang/tools/f18/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/flang/tools/f18/CMakeLists.txt b/flang/tools/f18/CMakeLists.txt
index ba6c6642c0b62e..a249583168313e 100644
--- a/flang/tools/f18/CMakeLists.txt
+++ b/flang/tools/f18/CMakeLists.txt
@@ -63,7 +63,7 @@ if (NOT CMAKE_CROSSCOMPILING)
       COMMAND ${CMAKE_COMMAND} -E make_directory ${FLANG_INTRINSIC_MODULES_DIR}
       COMMAND flang-new -cpp -fsyntax-only ${opts} -module-dir ${FLANG_INTRINSIC_MODULES_DIR}
         ${FLANG_SOURCE_DIR}/module/${filename}.f90
-      DEPENDS flang-new ${FLANG_SOURCE_DIR}/module/${filename}.f90 ${depends}
+      DEPENDS flang-new ${FLANG_SOURCE_DIR}/module/${filename}.f90 ${FLANG_SOURCE_DIR}/module/__fortran_builtins.f90 ${depends}
     )
     add_custom_command(OUTPUT ${base}.f18.mod
       DEPENDS ${base}.mod


        


More information about the flang-commits mailing list