aboutsummaryrefslogtreecommitdiff
path: root/src/fpm_compiler.f90
diff options
context:
space:
mode:
authorLKedward <laurence.kedward@bristol.ac.uk>2021-04-09 14:30:46 +0100
committerLaurence Kedward <laurence.kedward@bristol.ac.uk>2021-04-09 14:45:29 +0100
commit836a652f85b505493673ef2b3adc4703060ef10b (patch)
tree82f2b695cb01f4bbe5303b540b2cb066372e60b0 /src/fpm_compiler.f90
parentf85a458f7ab35ee53ab188b3679e05fae5e5819c (diff)
downloadfpm-836a652f85b505493673ef2b3adc4703060ef10b.tar.gz
fpm-836a652f85b505493673ef2b3adc4703060ef10b.zip
Change fallback C compiler equal to Fortran compiler
Diffstat (limited to 'src/fpm_compiler.f90')
-rw-r--r--src/fpm_compiler.f905
1 files changed, 3 insertions, 2 deletions
diff --git a/src/fpm_compiler.f90 b/src/fpm_compiler.f90
index 76aedcc..dcfd101 100644
--- a/src/fpm_compiler.f90
+++ b/src/fpm_compiler.f90
@@ -344,8 +344,6 @@ subroutine get_default_c_compiler(f_compiler, c_compiler)
id = get_compiler_id(f_compiler)
select case(id)
- case default
- c_compiler = 'gcc'
case(id_intel_classic)
c_compiler = 'icc'
@@ -359,6 +357,9 @@ subroutine get_default_c_compiler(f_compiler, c_compiler)
case(id_ibmxl)
c_compiler='xlc'
+ case default
+ ! Fall-back to using Fortran compiler
+ c_compiler = f_compiler
end select
end subroutine get_default_c_compiler