[Openmp-commits] [openmp] c7b2f31 - [OpenMP] Install the Fortran module files with libomp-mod (#227116)
via Openmp-commits
openmp-commits at lists.llvm.org
Tue Sep 29 05:50:49 PDT 2026
Author: Joseph Huber
Date: 2026-09-29T07:50:42-05:00
New Revision: c7b2f3191aab2d563d9146d828a195df6103292f
URL: https://github.com/llvm/llvm-project/commit/c7b2f3191aab2d563d9146d828a195df6103292f
DIFF: https://github.com/llvm/llvm-project/commit/c7b2f3191aab2d563d9146d828a195df6103292f.diff
LOG: [OpenMP] Install the Fortran module files with libomp-mod (#227116)
Summary:
The `libomp-mod` install component only contains `omp_lib.h`. The module
files are only installed incidentally as part of the Fortran runtime or
directory copy. Just do this directly. These were intentinoally dropped
in https://github.com/llvm/llvm-project/pull/171515, in favor of the
directory copy. However, this means these are ignored when done through
the specific component target.
Shouldn't affect plain installs.
Added:
Modified:
openmp/module/CMakeLists.txt
Removed:
################################################################################
diff --git a/openmp/module/CMakeLists.txt b/openmp/module/CMakeLists.txt
index 2d9829e84849a..3d7128dee1117 100644
--- a/openmp/module/CMakeLists.txt
+++ b/openmp/module/CMakeLists.txt
@@ -36,6 +36,8 @@ flang_module_target(libomp-mod PUBLIC)
install(FILES
"${RUNTIMES_OUTPUT_RESOURCE_MOD_DIR}/omp_lib.h"
+ "${RUNTIMES_OUTPUT_RESOURCE_MOD_DIR}/omp_lib.mod"
+ "${RUNTIMES_OUTPUT_RESOURCE_MOD_DIR}/omp_lib_kinds.mod"
DESTINATION "${RUNTIMES_INSTALL_RESOURCE_MOD_PATH}"
COMPONENT libomp-mod
EXCLUDE_FROM_ALL
More information about the Openmp-commits
mailing list