Skip to content

Commit ef77382

Browse files
committed
[OpenMP] Remove obsolete Fortran module file
Modern Fortran compilers support Fortran 90, so we do not need to use the source code for Fortran compilers that do not support Fortran 90. Differential Revision: https://reviews.llvm.org/D90077
1 parent 7df6340 commit ef77382

File tree

3 files changed

+1
-1058
lines changed

3 files changed

+1
-1058
lines changed

openmp/runtime/src/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,6 @@ endif()
239239
# One compilation step creates both omp_lib.mod and omp_lib_kinds.mod
240240
if(${LIBOMP_FORTRAN_MODULES})
241241
configure_file(${LIBOMP_INC_DIR}/omp_lib.h.var omp_lib.h @ONLY)
242-
configure_file(${LIBOMP_INC_DIR}/omp_lib.f.var omp_lib.f @ONLY)
243242
configure_file(${LIBOMP_INC_DIR}/omp_lib.f90.var omp_lib.f90 @ONLY)
244243
# Workaround for gfortran to build modules with the
245244
# omp_sched_monotonic integer parameter
@@ -251,7 +250,7 @@ if(${LIBOMP_FORTRAN_MODULES})
251250
if(CMAKE_Fortran_COMPILER_SUPPORTS_F90)
252251
set(LIBOMP_FORTRAN_SOURCE_FILE omp_lib.f90)
253252
else()
254-
set(LIBOMP_FORTRAN_SOURCE_FILE omp_lib.f)
253+
message(FATAL_ERROR "Fortran module build requires Fortran 90 compiler")
255254
endif()
256255
add_custom_command(
257256
OUTPUT omp_lib.mod omp_lib_kinds.mod

0 commit comments

Comments
 (0)