[Openmp-commits] [openmp] 22a6417 - [openmp][test] Don't use random Flang by default

Michael Kruse via Openmp-commits openmp-commits at lists.llvm.org
Sat Sep 20 04:55:31 PDT 2025


Author: Michael Kruse
Date: 2025-09-20T13:53:47+02:00
New Revision: 22a64170df0365c53d004a7c763d83776aa065a9

URL: https://github.com/llvm/llvm-project/commit/22a64170df0365c53d004a7c763d83776aa065a9
DIFF: https://github.com/llvm/llvm-project/commit/22a64170df0365c53d004a7c763d83776aa065a9.diff

LOG: [openmp][test] Don't use random Flang by default

Only enable Fortran tests when either the test compiler is set
explicitly, or in a runtimes bootstrapping build. A system-installed
Flang either may not exist, or too old to compiler our tests.

Fixes buildbot failure after landing #150722
https://lab.llvm.org/buildbot/#/builders/10/builds/13905

Added: 
    

Modified: 
    openmp/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/openmp/CMakeLists.txt b/openmp/CMakeLists.txt
index cb76906d78277..88be8c75abfe6 100644
--- a/openmp/CMakeLists.txt
+++ b/openmp/CMakeLists.txt
@@ -97,9 +97,9 @@ include(config-ix)
 include(HandleOpenMPOptions)
 
 # Check for flang
-set(OPENMP_TEST_Fortran_COMPILER_default "flang")
+set(OPENMP_TEST_Fortran_COMPILER_default "")
 if (CMAKE_Fortran_COMPILER)
-    set(OPENMP_TEST_Fortran_COMPILER_default "${CMAKE_Fortran_COMPILER}")
+  set(OPENMP_TEST_Fortran_COMPILER_default "${CMAKE_Fortran_COMPILER}")
 endif ()
 set(OPENMP_TEST_Fortran_COMPILER "${OPENMP_TEST_Fortran_COMPILER_default}" CACHE STRING
   "Fortran compiler to use for testing OpenMP runtime libraries.")


        


More information about the Openmp-commits mailing list