You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: flang-rt/lib/runtime/CMakeLists.txt
+12-7Lines changed: 12 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -242,14 +242,20 @@ endif ()
242
242
243
243
if (NOTWIN32)
244
244
# CMake ignores intrinsic USE dependencies
245
-
# CMake has an option Fortran_BUILDING_INSTRINSIC_MODULES/Fortran_BUILDING_INTRINSIC_MODULES to disable this behavior, unfortunately it does not work with Ninja (https://gitlab.kitware.com/cmake/cmake/-/issues/26803)
246
-
# As a workaround, we build those intrinsic modules first such that the main runtime can depend on it.
245
+
# CMake has an option Fortran_BUILDING_INSTRINSIC_MODULES/Fortran_BUILDING_INTRINSIC_MODULES
246
+
# to disable this behavior, unfortunately it does not work with Ninja
"Path for binary subdirectory (defaults to '${CMAKE_INSTALL_BINDIR}')")
274
274
mark_as_advanced(FLANG_TOOLS_INSTALL_DIR)
275
275
276
-
#set(FLANG_INTRINSIC_MODULES_DIR "" CACHE PATH "Additional search path for modules; needed for running all tests if not building flang-rt in a bootstrapping build")
277
-
#set(FLANG_TEST_FLANG_RT_Fortran_FLAGS "" CACHE STRING "Additional flags that makes Flang find the Flang-RT modules during testing; typically -fintrinsic-modules-path=<path>")
278
-
#set(FLANG_TEST_OPENMP_Fortran_FLAGS "" CACHE STRING "Additional flags that makes Flang find the OpenMP modules during testing; typically -fintrinsic-modules-path=<path>")
279
-
280
-
set(FLANG_TEST_Fortran_FLAGS ""CACHESTRING"Additional Fortran flags for running tests, such as -fintrinsic-modules-path=<path>")
281
-
282
-
if ("flang-rt"IN_LIST LLVM_ENABLE_RUNTIMES)
283
-
set(FLANG_TEST_ENABLE_INTRINSICS_default ON)
284
-
else ()
285
-
set(FLANG_TEST_ENABLE_INTRINSICS_default OFF)
286
-
endif ()
287
-
option(FLANG_TEST_ENABLE_INTRINSICS "Enable tests that require intrinsic modules from Flang-RT""${FLANG_TEST_ENABLE_INTRINSICS_default}")
288
-
289
-
290
-
if ("openmp"IN_LIST LLVM_ENABLE_RUNTIMES AND FLANG_TEST_ENABLE_INTRINSICS)
291
-
set(FLANG_TEST_ENABLE_OPENMP_default ON)
292
-
else ()
293
-
set(FLANG_TEST_ENABLE_OPENMP_default OFF)
294
-
endif ()
295
-
option(FLANG_TEST_ENABLE_OPENMP "Enable tests that require modules from OpenMP""${FLANG_TEST_ENABLE_OPENMP_default}")
0 commit comments