[flang-commits] [clang] [flang] [llvm] [openmp] [Flang][OpenMP] Move builtin .mod generation into runtimes (PR #137828)

Michael Kruse via flang-commits flang-commits at lists.llvm.org
Tue Jul 22 08:07:59 PDT 2025


================
@@ -6,8 +6,8 @@
 !-----------------------------------------
 ! FRONTEND FLANG DRIVER (flang -fc1)
 !-----------------------------------------
-! RUN: %flang_fc1 -fsyntax-only %s  2>&1 | FileCheck %s --allow-empty --check-prefix=WITHOUT
-! RUN: not %flang_fc1 -fsyntax-only -fintrinsic-modules-path %S/Inputs/ %s  2>&1 | FileCheck %s --check-prefix=GIVEN
+! RUN:     %flang_bare -fsyntax-only                                     %s %intrinsic_module_flags 2>&1 | FileCheck %s --check-prefix=WITHOUT --allow-empty
----------------
Meinersbur wrote:

@klausler 
If building using a bootstrapping configuration (`-DLLVM_ENABLE_RUNTIMES=flang-rt`, implicitly added when `-DLLVM_ENABLE_PROJECTS=flang`), the mod files are automatically put into the Clang/Flang resource directory as a dependency of `check-flang`. If explictly disabled using `-DFLANG_ENABLE_FLANG_RT=OFF` or in a Flang-standalone build (that currently does not support LLVM_ENABLE_RUNTIMES), Flang-RT can be compiled separately and `FLANG_INTRINSIC_MODULES_DIR` pointed to it. `lit.cfg.py` will add the path via `-fintrinsic-module-path` to each `flang`/`%flang_fc1` call. If FLANG_INTRINSIC_MODULES_DIR is not set then tests in `test/` will be skipped.

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


More information about the flang-commits mailing list