Skip to content

Commit deb33c7

Browse files
committed
Merge commit '830ef4e4e2d0f181ed1cfacbc3daacb2555ff9e4' into users/meinersbur/flang_builtin-mods_2
2 parents 9226606 + 830ef4e commit deb33c7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

openmp/CMakeLists.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,8 @@ endif ()
124124
set(OPENMP_TEST_Fortran_COMPILER "${OPENMP_TEST_Fortran_COMPILER_default}" CACHE STRING
125125
"Fortran compiler to use for testing OpenMP runtime libraries.")
126126

127-
if (CMAKE_Fortran_COMPILER AND NOT LLVM_RUNTIMES_BUILD)
128-
message(WARNING "Building omp_lib.mod requires using LLVM_ENABLE_RUNTIMES=flang-rt\\\;openmp")
129-
endif ()
127+
set(LIBOMP_FORTRAN_MODULES FALSE CACHE BOOL
128+
"Create Fortran module files? (requires fortran compiler)")
130129

131130
# Set up testing infrastructure.
132131
include(OpenMPTesting)
@@ -172,6 +171,8 @@ if("${LLVM_DEFAULT_TARGET_TRIPLE}" MATCHES "^amdgcn|^nvptx" OR
172171
"${CMAKE_CXX_COMPILER_TARGET}" MATCHES "^amdgcn|^nvptx")
173172
add_subdirectory(device)
174173
else()
174+
add_subdirectory(module)
175+
175176
# Build host runtime library, after LIBOMPTARGET variables are set since they
176177
# are needed to enable time profiling support in the OpenMP runtime.
177178
add_subdirectory(runtime)

0 commit comments

Comments
 (0)