Skip to content

Commit 4b76950

Browse files
authored
Merge pull request #70 from sourceryinstitute/support-flang
2 parents 3fa6eda + b167863 commit 4b76950

File tree

2 files changed

+18
-11
lines changed

2 files changed

+18
-11
lines changed

README.md

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -64,17 +64,17 @@ compiler standard-conformance, including a test for each scenario in which the
6464
the Fortran 2018 standard requires that an object be finalized. The table below
6565
summarizes the observed compiler behaviors:
6666

67-
| _Compiler_ | _Test failures_ | _Version tested_ |
68-
| :--- | :---: | :--- |
69-
| AMD | N.A. (see Note 1.) | `flang` 13.0.0 (AOCC_3.2.0-Build\#128 2021\_11\_12) |
70-
| Cray | >= 3 (see Note 2.) | `ftn` 13.0.1 |
71-
| GCC :trophy: | 0 | `gfortran` 13.1.0 |
72-
| IBM | 1 | `xlf2008_r` 17.1.0 on AIX |
73-
| Intel | 1 | `ifort` 2021.7.0 Build 20220726_000000 |
74-
| | 1 | `ifx` 2024.0.0 Build 20231017 |
75-
| LLVM | N.A. (see Note 3.) | `git` commit `f5253058144aca1e9fcacd` (9/20/2022) |
76-
| NAG :trophy: | 0 | `nagfor` 7.1 Build 7113 |
77-
| NVIDIA | 2 | `nvfortran` 22.7-0 |
67+
| _Compiler_ | _Test failures_ | _Version tested_ |
68+
| :--- | :---: | :--- |
69+
| AMD `flang` | N.A. (see Note 1.) | 13.0.0 (AOCC_3.2.0-Build\#128 2021\_11\_12) |
70+
| Cray `ftn` | >= 3 (see Note 2.) | 13.0.1 |
71+
| GCC `gfortran` :trophy: | 0 | 13.1.0 |
72+
| IBM `xlf2008_r` | 1 | 17.1.0 on AIX |
73+
| Intel `ifort` | 1 | 2021.7.0 Build 20220726_000000 |
74+
| Intel `ifx` | 1 | 2024.0.0 Build 20231017 |
75+
| LLVM `flang` :trophy: | 0 | `git` commit `f5253058144aca1e9fcacd` (9/20/2022) |
76+
| NAG `nagfor` :trophy: | 0 | 7.1 Build 7113 |
77+
| NVIDIA `nvfortran` | 2 | 22.7-0 |
7878

7979
**Notes**
8080
1. Fails to build due to an internal compiler error (ICE).
@@ -119,6 +119,11 @@ fpm test --archiver ar --compiler xlf2008_r --flag -DXLF
119119
fpm test
120120
```
121121

122+
### LLVM
123+
```
124+
fpm test --compiler flang-new
125+
```
126+
122127
### NVIDIA
123128
```
124129
fpm test --compiler nvfortran --flag -Mpreprocess

test/compiler_test_m.f90

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,8 @@ function fpm_compiler_arguments() result(args)
239239
args = "--compiler ftn"
240240
else if (index(compiler_identity, "XLF")==1) then
241241
args = "--compiler xlf2008_r"
242+
else if (index(compiler_identity, "flang")==1) then
243+
args = "--compiler flang-new"
242244
else
243245
error stop "----> Unrecognized compiler_version() in function fpm_compiler_arguments. <----"
244246
end if

0 commit comments

Comments
 (0)