Skip to content

Commit d16c374

Browse files
committed
Use gcc instead of gfortran to compile C code
- relevant for conda-forge's gfortran on OSX which comes without C compiler
1 parent 9a03476 commit d16c374

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/fpm_compiler.f90

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,9 @@ subroutine get_default_c_compiler(f_compiler, c_compiler)
446446
case(id_lfortran)
447447
c_compiler = 'cc'
448448

449+
case(id_gcc)
450+
c_compiler = 'gcc'
451+
449452
case default
450453
! Fall-back to using Fortran compiler
451454
c_compiler = f_compiler

0 commit comments

Comments
 (0)