Skip to content

Commit ba1d4b4

Browse files
committed
doc(README): fix test command for fpm version<0.13
1 parent 33df543 commit ba1d4b4

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ $$ \iiint_V (\vec{v} \cdot \nabla f) dV + \iiint_V (f \nabla \cdot \vec{v}) dV =
3131

3232
Running the program as follows
3333
```fortran
34-
fpm run --example extended-gauss-divergence --compiler flang-new --flag -O3
34+
fpm run --example extended-gauss-divergence --compiler flang --profile release
3535
```
3636
produces output that includes actual program syntax:
3737
```fortran
@@ -77,11 +77,19 @@ Building and testing
7777
GCC | `gfortran` | 13 | `fpm test --compiler gfortran --profile release --flag "-ffree-line-length-none"`
7878
Intel | `ifx` | 2025.1.2 | `FOR_COARRAY_NUM_IMAGES=1 fpm test --compiler ifx --flag "-fpp -O3 -coarray" --profile release`
7979
LFortran | `lfortran` | 0.60.0-421-ge2c448c79 | `fpm test --compiler lfortran --flag "--cpp --realloc-lhs-arrays"`
80-
LLVM | `flang` | 20-21 | `fpm test --compiler flang --flag "-O3"`
81-
LLVM | `flang` | 19 | `fpm test --compiler flang --flag "-O3 -mmlir -allow-assumed-rank"`
80+
LLVM | `flang` | 20-21 | `fpm test --compiler flang --profile release
81+
LLVM | `flang` | 19 | `fpm test --compiler flang --profile release --flag "-mmlir -allow-assumed-rank"`
8282
NAG | `nagfor` | 7.2 Build 7242 | `fpm test --compiler nagfor --flag "-O3 -fpp"`
8383

84-
With `fpm` versions before 0.13.0, replace `flang` with `flang-new` above.
84+
### `fpm` versions before 0.13.0
85+
With LLVM 20-22, replace the above `flang` command with
86+
```
87+
fpm test --compiler flang-new --flag "-O3"
88+
```
89+
With LLVM 19, replace the above `flang` command with
90+
```
91+
fpm test --compiler flang-new --flag "-O3 -mmlir -allow-assumed-rank"
92+
```
8593

8694
Documentation
8795
-------------

0 commit comments

Comments
 (0)