Skip to content

Commit 484d2b3

Browse files
committed
refactor: rename c_compile to cpp_compiler
1 parent ecac6ca commit 484d2b3

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/fpm_compiler.f90

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -588,36 +588,36 @@ subroutine get_default_c_compiler(f_compiler, c_compiler)
588588
end subroutine get_default_c_compiler
589589

590590
!> Get C++ Compiler.
591-
subroutine get_default_cpp_compiler(f_compiler, c_compiler)
591+
subroutine get_default_cpp_compiler(f_compiler, cpp_compiler)
592592
character(len=*), intent(in) :: f_compiler
593-
character(len=:), allocatable, intent(out) :: c_compiler
593+
character(len=:), allocatable, intent(out) :: cpp_compiler
594594
integer(compiler_enum) :: id
595595

596596
id = get_compiler_id(f_compiler)
597597

598598
select case(id)
599599

600600
case(id_intel_classic_nix, id_intel_classic_mac, id_intel_classic_windows)
601-
c_compiler = 'icpc'
601+
cpp_compiler = 'icpc'
602602

603603
case(id_intel_llvm_nix,id_intel_llvm_windows)
604-
c_compiler = 'icpx'
604+
cpp_compiler = 'icpx'
605605

606606
case(id_flang, id_flang_new, id_f18)
607-
c_compiler='clang'
607+
cpp_compiler='clang'
608608

609609
case(id_ibmxl)
610-
c_compiler='xlc++'
610+
cpp_compiler='xlc++'
611611

612612
case(id_lfortran)
613-
c_compiler = 'cc'
613+
cpp_compiler = 'cc'
614614

615615
case(id_gcc)
616-
c_compiler = 'g++'
616+
cpp_compiler = 'g++'
617617

618618
case default
619619
! Fall-back to using Fortran compiler
620-
c_compiler = f_compiler
620+
cpp_compiler = f_compiler
621621
end select
622622

623623
end subroutine get_default_cpp_compiler

0 commit comments

Comments
 (0)