[flang-commits] [flang] d6cb014 - [flang][docs] Minor update to Fortran LLVM Tests-suite docs.

via flang-commits flang-commits at lists.llvm.org
Mon Jun 28 08:02:14 PDT 2021


Author: naromero77
Date: 2021-06-28T10:01:29-05:00
New Revision: d6cb0143cccedaaddcfa274b25e9696dd1de5ab1

URL: https://github.com/llvm/llvm-project/commit/d6cb0143cccedaaddcfa274b25e9696dd1de5ab1
DIFF: https://github.com/llvm/llvm-project/commit/d6cb0143cccedaaddcfa274b25e9696dd1de5ab1.diff

LOG: [flang][docs] Minor update to Fortran LLVM Tests-suite docs.

Updated Fortran LLVM Test-suite docs to reflect latest changes.

Reviewed By: Meinersbur, xgupta

Differential Revision: https://reviews.llvm.org/D104961

Added: 
    

Modified: 
    flang/docs/FortranLLVMTestSuite.md

Removed: 
    


################################################################################
diff  --git a/flang/docs/FortranLLVMTestSuite.md b/flang/docs/FortranLLVMTestSuite.md
index ee7ce4292810..46a8fe4f6342 100644
--- a/flang/docs/FortranLLVMTestSuite.md
+++ b/flang/docs/FortranLLVMTestSuite.md
@@ -21,18 +21,18 @@ code-generation capabilities.
 
 Fortran support can be enabled by setting the following CMake variables:
 ```
-% cmake -DCMAKE_Fortran_COMPILER=<path to Fortran compiler> \
-        -DTEST_SUITE_FORTRAN:STRING=ON \
-        -C../test-suite/cmake/caches/O3.cmake \
-        ../test-suite
+cmake -G "Ninja" -DCMAKE_C_COMPILER=<path to C compiler> \
+    -DCMAKE_CXX_COMPILER=<path to C++ compiler> \
+    -DCMAKE_Fortran_COMPILER=<path to Fortran compiler> \
+    -DTEST_SUITE_COLLECT_CODE_SIZE:STRING=OFF \
+    -DTEST_SUITE_SUBDIRS:STRING="Fortran" \
+    -DTEST_SUITE_FORTRAN:STRING=ON ..
 ```
 
-At the moment, there is only a "hello world" Fortran test. A current
-shortcoming in the design of the test suite is that building the C/C++
-tests is conflated with building and running the Fortran tests,
-i.e. it is not possible to only build and run the Fortran tests with
-the exception of the [External
-tests](https://llvm.org/docs/TestSuiteGuide.html#external-suites).
+This will configure the test-suite to run only the Fortran tests which
+are found in the Fortran subdirectory. To run the C/C++ tests
+alongside the Fortran tests omit the `-DTEST_SUITE_SUBDIRS` CMake
+variable.
 
 
 ## Running the SPEC CPU 2017


        


More information about the flang-commits mailing list