[Openmp-commits] [llvm] [openmp] [Runtimes] Drop 'flang' from runtimes configure dependency (PR #198205)

Michael Kruse via Openmp-commits openmp-commits at lists.llvm.org
Wed Jun 3 06:06:44 PDT 2026


================
@@ -147,6 +149,11 @@ else ()
   return ()
 endif ()
 
+# In a bootstrapping build the Fortran compiler may not have been built yet.
+# Create a placeholder so CMake's enable_language() existence check passes.
+if (CMAKE_Fortran_COMPILER_FORCED AND NOT EXISTS "${CMAKE_Fortran_COMPILER}")
+  file(TOUCH "${CMAKE_Fortran_COMPILER}")
----------------
Meinersbur wrote:

"Permission denied" because the (empty) file does not have the permission bit set, not because it does not exiust

In case of ninja, if the mtime of the empty file happens to land in the `.ninja_log`, it thinks it's the most recent artfiact and not build `bin/flang`.


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


More information about the Openmp-commits mailing list