mirror-llvm-project/openmp
Daniel Chen dd145eb899
[openmp][flang] To add a cmake option to build OPENMP Fortran modules only without building the libomp lib (#195576)
PR #192687 Introduces a dependency to the Fortran intrinsic module when
building `openmp` Fortran modules, which requires a Flang enabled llvm
build in order to build `openmp` Fortran modules.

This PR is to add a cmake option `LIBOMP_FORTRAN_MODULES_ONLY` to allow
users to build 'openmp` Fortran modules only for Flang without building
the libomp runtime library.
This will allow libomp.a/so build still be independent from the Flang
build as before.

E.g. To build `openmp` Fortran modules only for Flang, one would need to
use the following options.
```
cmake \
...
  -DLIBOMP_FORTRAN_MODULES_ONLY=ON \
  -DLLVM_ENABLE_PROJECTS="flang" \
  -DLLVM_ENABLE_RUNTIMES="openmp" \
  ...
2026-05-06 11:58:00 -04:00
..
cmake [OpenMP] Add target to build OpenMP runtime (#189557) 2026-05-05 11:40:06 +02:00
device [OpenMP] Add target to build OpenMP runtime (#189557) 2026-05-05 11:40:06 +02:00
docs [NFC][offload][OpenMP] Fix kernel replay documentation (#193832) 2026-04-23 13:13:12 -07:00
libompd [OpenMP] Add target to build OpenMP runtime (#189557) 2026-05-05 11:40:06 +02:00
module [OpenMP] Add target to build OpenMP runtime (#189557) 2026-05-05 11:40:06 +02:00
runtime [OpenMP][OMPT] Update tools header for OpenMP v6.0 (#195829) 2026-05-05 14:03:58 +00:00
tools [OpenMP] Add target to build OpenMP runtime (#189557) 2026-05-05 11:40:06 +02:00
.gitignore
CMakeLists.txt [openmp][flang] To add a cmake option to build OPENMP Fortran modules only without building the libomp lib (#195576) 2026-05-06 11:58:00 -04:00
CREDITS.txt
LICENSE.TXT
Maintainers.md Nominate Michael Klemm as lead maintainer of OpenMP (#175964) 2026-01-14 15:17:26 +00:00