Skip to content

Commit 00f7839

Browse files
authored
[openmp] add flang-new syntax (#1113)
2 parents 1ae7351 + a3a7233 commit 00f7839

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/fpm_compiler.F90

+3
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,9 @@ module fpm_compiler
248248
flag_cray_fixed_form = " -ffixed", &
249249
flag_cray_free_form = " -ffree"
250250

251+
character(*), parameter :: &
252+
flag_flang_new_openmp = " -fopenmp"
253+
251254
contains
252255

253256

src/fpm_meta.f90

+4
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,10 @@ subroutine init_openmp(this,compiler,error)
223223
case (id_lfortran)
224224
this%flags = string_t(flag_lfortran_openmp)
225225
this%link_flags = string_t(flag_lfortran_openmp)
226+
227+
case (id_flang, id_flang_new)
228+
this%flags = string_t(flag_flang_new_openmp)
229+
this%link_flags = string_t(flag_flang_new_openmp)
226230

227231
case default
228232

0 commit comments

Comments
 (0)