@@ -273,7 +273,13 @@ module fpm_compiler
273
273
flag_cray_free_form = " -ffree"
274
274
275
275
character (* ), parameter :: &
276
- flag_flang_new_openmp = " -fopenmp"
276
+ flag_flang_new_openmp = " -fopenmp" , &
277
+ flag_flang_new_debug = " -g" , &
278
+ flag_flang_new_opt = " -O3" , &
279
+ flag_flang_new_pic = " -fPIC" , &
280
+ flag_flang_new_free_form = " -ffree-form" , &
281
+ flag_flang_new_fixed_form = " -ffixed-form" , &
282
+ flag_flang_new_no_implicit_typing = " -fimplicit-none"
277
283
278
284
contains
279
285
@@ -405,6 +411,11 @@ subroutine get_release_compile_flags(id, flags)
405
411
flags = &
406
412
flag_lfortran_opt
407
413
414
+ case (id_flang_new)
415
+ flags = &
416
+ flag_flang_new_opt// &
417
+ flag_flang_new_pic
418
+
408
419
end select
409
420
end subroutine get_release_compile_flags
410
421
@@ -500,6 +511,12 @@ subroutine get_debug_compile_flags(id, flags)
500
511
501
512
case (id_lfortran)
502
513
flags = " "
514
+
515
+ case (id_flang_new)
516
+ flags = &
517
+ flag_flang_new_debug// &
518
+ flag_flang_new_pic
519
+
503
520
end select
504
521
end subroutine get_debug_compile_flags
505
522
@@ -512,7 +529,7 @@ pure subroutine set_cpp_preprocessor_flags(id, flags)
512
529
select case (id)
513
530
case default
514
531
flag_cpp_preprocessor = " "
515
- case (id_caf, id_gcc, id_f95, id_nvhpc)
532
+ case (id_caf, id_gcc, id_f95, id_nvhpc, id_flang_new )
516
533
flag_cpp_preprocessor = " -cpp"
517
534
case (id_intel_classic_windows, id_intel_llvm_windows)
518
535
flag_cpp_preprocessor = " /fpp"
@@ -700,6 +717,9 @@ function get_feature_flag(self, feature) result(flags)
700
717
case (id_cray)
701
718
flags = flag_cray_no_implicit_typing
702
719
720
+ case (id_flang_new)
721
+ flags = flag_flang_new_no_implicit_typing
722
+
703
723
end select
704
724
705
725
case (" implicit-typing" )
@@ -747,6 +767,9 @@ function get_feature_flag(self, feature) result(flags)
747
767
case (id_cray)
748
768
flags = flag_cray_free_form
749
769
770
+ case (id_flang_new)
771
+ flags = flag_flang_new_free_form
772
+
750
773
end select
751
774
752
775
case (" fixed-form" )
@@ -773,6 +796,9 @@ function get_feature_flag(self, feature) result(flags)
773
796
case (id_lfortran)
774
797
flags = flag_lfortran_fixed_form
775
798
799
+ case (id_flang_new)
800
+ flags = flag_flang_new_fixed_form
801
+
776
802
end select
777
803
778
804
case (" default-form" )
0 commit comments