[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
================
@@ -88,15 +88,17 @@ if (CMAKE_Fortran_COMPILER)
# cannot use CMAKE_Fortran_COMPILER_ID.
cmake_path(GET CMAKE_Fortran_COMPILER STEM _Fortran_COMPILER_STEM)
if (_Fortran_COMPILER_STEM STREQUAL "flang-new" OR _Fortran_COMPILER_STEM STREQUAL "flang")
+ # Force the compiler ID so CMake does not try to run the compiler for
+ # identification. In a bootstrapping build the Flang binary may not be
+ # built yet at configure time (only CMAKE_Fortran_COMPILER_WORKS is set).
+ set(CMAKE_Fortran_COMPILER_ID "LLVMFlang")
+ set(CMAKE_Fortran_COMPILER_ID_RUN TRUE)
+ set(CMAKE_Fortran_COMPILER_FORCED TRUE)
+ set(CMAKE_Fortran_COMPILER_VERSION "${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}")
----------------
Meinersbur wrote:
Under Windows, CMake would use clang-cl, which is CMAKE_C_SIMULATE_ID "MSVC". There is no flang-cl that would support that.
https://github.com/llvm/llvm-project/pull/198205
More information about the Openmp-commits
mailing list