File tree 1 file changed +11
-4
lines changed
1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -21,18 +21,25 @@ cmake -G "Ninja" -DCMAKE_C_COMPILER=<path to C compiler> \
21
21
-DCMAKE_Fortran_COMPILER=<path to Fortran compiler> \
22
22
-DTEST_SUITE_COLLECT_CODE_SIZE:STRING=OFF \
23
23
-DTEST_SUITE_SUBDIRS:STRING="Fortran" \
24
- -DTEST_SUITE_FORTRAN:STRING=ON ..
24
+ -DTEST_SUITE_FORTRAN:STRING=ON \
25
+ -DTEST_SUITE_LIT=<path to llvm-lit> \
26
+ <path to llvm-test-suite>
25
27
```
26
28
27
29
This will configure the test-suite to run only the Fortran tests which
28
30
are found in the Fortran subdirectory. To run the C/C++ tests
29
31
alongside the Fortran tests omit the ` -DTEST_SUITE_SUBDIRS ` CMake
30
32
variable.
31
33
32
- If your Fortran compiler is Flang, you may want to set the ` NO_STOP_MESSAGE `
33
- environment variable to ` 1 ` in order to avoid test failures due to warnings
34
- about INEXACT signaling exceptions .
34
+ If your Fortran compiler is Flang, there are a couple of other things you need
35
+ to do, which are explained
36
+ [ here ] ( https://github.com/llvm/llvm-test-suite/blob/main/Fortran/gfortran/README.md#usage ) .
35
37
38
+ Then to build and run the tests:
39
+ ```
40
+ ninja
41
+ ninja check
42
+ ```
36
43
37
44
## Running the SPEC CPU 2017
38
45
You can’t perform that action at this time.
0 commit comments