[flang-commits] [flang] [openmp] [flang][OpenMP] Compile proper `omp_lib.mod` from the `openmp/src/include` sources (PR #80874)

Valentin Clement バレンタイン クレメン via flang-commits flang-commits at lists.llvm.org
Thu Feb 29 08:45:34 PST 2024


================
@@ -71,6 +71,30 @@ if (NOT CMAKE_CROSSCOMPILING)
     list(APPEND MODULE_FILES ${base}.mod ${base}.f18.mod)
     install(FILES ${base}.mod ${base}.f18.mod DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/flang")
   endforeach()
+
+  # Special case for omp_lib.mod, because its source comes from openmp/runtime/src/include.
+  # It also produces to module files: omp_lib.mod and omp_lib_kinds.mod.  Compile these
----------------
clementval wrote:

```suggestion
  # It also produces two module files: omp_lib.mod and omp_lib_kinds.mod.  Compile these
```

https://github.com/llvm/llvm-project/pull/80874


More information about the flang-commits mailing list