[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.
This commit is contained in:
Daniel Chen 2026-03-04 10:51:24 -05:00 committed by GitHub
parent e8e8d30b22
commit 53aa77092e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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})