[PATCH] D97250: [test-suite] Robust warnings for Fortran Test Suite tests that require Ninja.
Michael Kruse via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 22 21:04:16 PST 2021
Meinersbur added inline comments.
================
Comment at: CMakeLists.txt:11-16
if(NOT CMAKE_GENERATOR STREQUAL "Ninja")
message(WARNING
- "Fortran test suite may NOT build with this CMAKE_GENERATOR = ${CMAKE_GENERATOR}.\n"
- "Recommend using Ninja 1.10 or later by adding -G \"Ninja\" to cmake invocation.")
+ "Fortran test suite will NOT build certain tests with this CMAKE_GENERATOR = ${CMAKE_GENERATOR}.\n"
+ "Strongly recommend using Ninja 1.10 or later by adding -G \"Ninja\" to cmake invocation.\n"
+ "More details here: https://gitlab.kitware.com/cmake/cmake/-/issues/16590")
endif()
----------------
Assuming that we add `ninja_required()` to every test that needs it, this warning is unnecessary.
If such a test is included in `TEST_SUITE_SUBDRS`: Get warning and error
Otherwise: Warning does not apply
================
Comment at: cmake/modules/Fortran.cmake:3
+#
+# Fortran-specific helper functions to build benchmarks and the corresponding .test files
+#
----------------
Wrap line?
================
Comment at: cmake/modules/Fortran.cmake:8-18
+# The Ninja generator supports robust scanning for modules that are needed by
+# some Fortran tests. Because Ninja does a full preprocessing pass on Fortran files,
+# it is able to detect module dependencies that are dependent on preprocessing.
+# For example,
+# #ifdef FOO
+# USE MODULE_A
+# #else
----------------
Thanks for the explanation
Repository:
rT test-suite
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D97250/new/
https://reviews.llvm.org/D97250
More information about the llvm-commits
mailing list