[flang-commits] [flang] 53aa770 - [flang] Fix distribution build of Fortran builtin/intrinsic modules. (#184204)

via flang-commits flang-commits at lists.llvm.org
Wed Mar 4 07:51:30 PST 2026


Author: Daniel Chen
Date: 2026-03-04T10:51:24-05:00
New Revision: 53aa77092ea72b85bec0c8bb1ba11ed1f2f2eefe

URL: https://github.com/llvm/llvm-project/commit/53aa77092ea72b85bec0c8bb1ba11ed1f2f2eefe
DIFF: https://github.com/llvm/llvm-project/commit/53aa77092ea72b85bec0c8bb1ba11ed1f2f2eefe.diff

LOG: [flang] Fix distribution build of Fortran builtin/intrinsic modules. (#184204)

Currently, `-DLLVM_DISTRIBUTION_COMPONENTS="flang-module-interfaces"`
doesn't work. It failed to build the Fortran builtin/intrinsic modules
as distribution build, `install-distribution`.
This PR is to fix that.

Added: 
    

Modified: 
    flang/tools/f18/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/flang/tools/f18/CMakeLists.txt b/flang/tools/f18/CMakeLists.txt
index 74b329f6c6c03..900b341e85c58 100644
--- a/flang/tools/f18/CMakeLists.txt
+++ b/flang/tools/f18/CMakeLists.txt
@@ -142,8 +142,10 @@ if (NOT CMAKE_CROSSCOMPILING)
   else()
     message(WARNING "Not building omp_lib.mod, no OpenMP runtime in either LLVM_ENABLE_PROJECTS or LLVM_ENABLE_RUNTIMES")
   endif()
+  add_custom_target(flang-module-interfaces ALL DEPENDS module_files)
   add_llvm_install_targets(install-flang-module-interfaces
     COMPONENT flang-module-interfaces)
+  add_dependencies(install-flang-module-interfaces flang-module-interfaces)
 endif()
 
 add_custom_target(module_files ALL DEPENDS ${MODULE_FILES})


        


More information about the flang-commits mailing list