aboutsummaryrefslogtreecommitdiff
path: root/src/fpm_compiler.f90
diff options
context:
space:
mode:
authorSebastian Ehlert <28669218+awvwgk@users.noreply.github.com>2021-08-23 21:40:59 +0200
committerSebastian Ehlert <28669218+awvwgk@users.noreply.github.com>2021-08-23 21:40:59 +0200
commitd16c374028ad13b397d39f56241daff14fcd2bfd (patch)
tree74005b6f5a8f03b742916954806b34e3f0c3affa /src/fpm_compiler.f90
parent9a034764283c4fa307e25388855b4dcdc0472f9e (diff)
downloadfpm-d16c374028ad13b397d39f56241daff14fcd2bfd.tar.gz
fpm-d16c374028ad13b397d39f56241daff14fcd2bfd.zip
Use gcc instead of gfortran to compile C code
- relevant for conda-forge's gfortran on OSX which comes without C compiler
Diffstat (limited to 'src/fpm_compiler.f90')
-rw-r--r--src/fpm_compiler.f903
1 files changed, 3 insertions, 0 deletions
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