From d16c374028ad13b397d39f56241daff14fcd2bfd Mon Sep 17 00:00:00 2001 From: Sebastian Ehlert <28669218+awvwgk@users.noreply.github.com> Date: Mon, 23 Aug 2021 21:40:59 +0200 Subject: Use gcc instead of gfortran to compile C code - relevant for conda-forge's gfortran on OSX which comes without C compiler --- src/fpm_compiler.f90 | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/fpm_compiler.f90') diff --git a/src/fpm_compiler.f90 b/src/fpm_compiler.f90 index d78da10..c8858b7 100644 --- a/src/fpm_compiler.f90 +++ b/src/fpm_compiler.f90 @@ -446,6 +446,9 @@ subroutine get_default_c_compiler(f_compiler, c_compiler) case(id_lfortran) c_compiler = 'cc' + case(id_gcc) + c_compiler = 'gcc' + case default ! Fall-back to using Fortran compiler c_compiler = f_compiler -- cgit v1.2.3