File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -5,14 +5,14 @@ add_subdirectory(lib)
55set (FLANG_TEST_Fortran_FLAGS "" CACHE STRING "Additional Fortran flags for running tests, such as -fintrinsic-modules-path=<path>" )
66
77if ("flang-rt" IN_LIST LLVM_ENABLE_RUNTIMES)
8- set (FLANG_TEST_ENABLE_INTRINSICS_default ON )
8+ set (FLANG_TEST_ENABLE_MODULES_default ON )
99else ()
10- set (FLANG_TEST_ENABLE_INTRINSICS_default OFF )
10+ set (FLANG_TEST_ENABLE_MODULES_default OFF )
1111endif ()
12- option (FLANG_TEST_ENABLE_INTRINSICS "Force-enable tests that require intrinsic modules from Flang-RT" "${FLANG_TEST_ENABLE_INTRINSICS_default } " )
12+ option (FLANG_TEST_ENABLE_MODULES "Force-enable tests that require intrinsic modules from Flang-RT" "${FLANG_TEST_ENABLE_MODULES_default } " )
1313
1414
15- if ("openmp" IN_LIST LLVM_ENABLE_RUNTIMES AND FLANG_TEST_ENABLE_INTRINSICS AND NOT FLANG_STANDALONE_BUILD)
15+ if ("openmp" IN_LIST LLVM_ENABLE_RUNTIMES AND FLANG_TEST_ENABLE_MODULES AND NOT FLANG_STANDALONE_BUILD)
1616 set (FLANG_TEST_ENABLE_OPENMP_default ON )
1717else ()
1818 set (FLANG_TEST_ENABLE_OPENMP_default OFF )
@@ -25,7 +25,7 @@ llvm_canonicalize_cmake_booleans(
2525 LLVM_BUILD_EXAMPLES
2626 LLVM_BYE_LINK_INTO_TOOLS
2727 LLVM_ENABLE_PLUGINS
28- FLANG_TEST_ENABLE_INTRINSICS
28+ FLANG_TEST_ENABLE_MODULES
2929 FLANG_TEST_ENABLE_OPENMP
3030)
3131
Original file line number Diff line number Diff line change @@ -169,10 +169,10 @@ def get_resource_module_intrinsic_dir(modfile):
169169
170170# If intrinsic modules are not available, disable tests unless they are marked as 'module-independent'.
171171config .available_features .add ("module-independent" )
172- if config .flang_test_enable_intrinsics or intrinsics_mod_path :
172+ if config .flang_test_enable_modules or intrinsics_mod_path :
173173 config .available_features .add ("flangrt-modules" )
174174else :
175- lit_config .warning (f"Intrinsic modules not in driver default paths: disabling most tests; Use FLANG_TEST_ENABLE_INTRINSICS =ON to force-enable" )
175+ lit_config .warning (f"Intrinsic modules not in driver default paths: disabling most tests; Use FLANG_TEST_ENABLE_MODULES =ON to force-enable" )
176176 config .limit_to_features .add ("module-independent" )
177177
178178# Determine if OpenMP runtime was built (enable OpenMP tests via REQUIRES in test file)
@@ -181,7 +181,7 @@ def get_resource_module_intrinsic_dir(modfile):
181181
182182 # Search path for omp_lib.h with LLVM_ENABLE_RUNTIMES=openmp
183183 # FIXME: openmp should write this file into the resource directory
184- extra_intrinsics_search_args += ["-I" , f"{ config .flang_obj_root } /../../runtimes/runtimes-bins/openmp/runtime/src" ]
184+ extra_intrinsics_search_args += ["-I" , f"{ config .flang_obj_root } /../../runtimes/runtimes-bins/openmp/runtime/src" ]
185185else :
186186 lit_config .warning (f"OpenMP modules found not in driver default paths: OpenMP tests disabled; Use FLANG_TEST_ENABLE_OPENMP=ON to force-enable" )
187187
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ config.flang_headers_dir = "@HEADER_BINARY_DIR@"
1717config.flang_llvm_tools_dir = "@CMAKE_BINARY_DIR@/bin"
1818config.flang_test_triple = "@FLANG_TEST_TARGET_TRIPLE@"
1919config.flang_test_fortran_flags = "@FLANG_TEST_Fortran_FLAGS@".split()
20- config.flang_test_enable_intrinsics = @FLANG_TEST_ENABLE_INTRINSICS @
20+ config.flang_test_enable_modules = @FLANG_TEST_ENABLE_MODULES @
2121config.flang_test_enable_openmp = @FLANG_TEST_ENABLE_OPENMP@
2222config.flang_examples = @LLVM_BUILD_EXAMPLES@
2323config.python_executable = "@PYTHON_EXECUTABLE@"
You can’t perform that action at this time.
0 commit comments