Skip to content

Commit 22a6417

Browse files
committed
[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
1 parent f205a2c commit 22a6417

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

openmp/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ include(config-ix)
9797
include(HandleOpenMPOptions)
9898

9999
# Check for flang
100-
set(OPENMP_TEST_Fortran_COMPILER_default "flang")
100+
set(OPENMP_TEST_Fortran_COMPILER_default "")
101101
if (CMAKE_Fortran_COMPILER)
102-
set(OPENMP_TEST_Fortran_COMPILER_default "${CMAKE_Fortran_COMPILER}")
102+
set(OPENMP_TEST_Fortran_COMPILER_default "${CMAKE_Fortran_COMPILER}")
103103
endif ()
104104
set(OPENMP_TEST_Fortran_COMPILER "${OPENMP_TEST_Fortran_COMPILER_default}" CACHE STRING
105105
"Fortran compiler to use for testing OpenMP runtime libraries.")

0 commit comments

Comments
 (0)