mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-16 02:06:30 +00:00
[flang][docs] Update llvm-test-suite docs (#81596)
With some missing config options and a link to the test suite docs that explain how to setup `ISO_FORTRAN_C_HEADER` and set the stop message variable.
This commit is contained in:
parent
3533fe783d
commit
d31406b394
@ -21,7 +21,9 @@ cmake -G "Ninja" -DCMAKE_C_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 ..
|
||||
-DTEST_SUITE_FORTRAN:STRING=ON \
|
||||
-DTEST_SUITE_LIT=<path to llvm-lit> \
|
||||
<path to llvm-test-suite>
|
||||
```
|
||||
|
||||
This will configure the test-suite to run only the Fortran tests which
|
||||
@ -29,10 +31,15 @@ are found in the Fortran subdirectory. To run the C/C++ tests
|
||||
alongside the Fortran tests omit the `-DTEST_SUITE_SUBDIRS` CMake
|
||||
variable.
|
||||
|
||||
If your Fortran compiler is Flang, you may want to set the `NO_STOP_MESSAGE`
|
||||
environment variable to `1` in order to avoid test failures due to warnings
|
||||
about INEXACT signaling exceptions.
|
||||
If your Fortran compiler is Flang, there are a couple of other things you need
|
||||
to do, which are explained
|
||||
[here](https://github.com/llvm/llvm-test-suite/blob/main/Fortran/gfortran/README.md#usage).
|
||||
|
||||
Then to build and run the tests:
|
||||
```
|
||||
ninja
|
||||
ninja check
|
||||
```
|
||||
|
||||
## Running the SPEC CPU 2017
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user