diff options
author | LKedward <laurence.kedward@bristol.ac.uk> | 2021-04-09 14:30:46 +0100 |
---|---|---|
committer | Laurence Kedward <laurence.kedward@bristol.ac.uk> | 2021-04-09 14:45:29 +0100 |
commit | 836a652f85b505493673ef2b3adc4703060ef10b (patch) | |
tree | 82f2b695cb01f4bbe5303b540b2cb066372e60b0 /src/fpm_compiler.f90 | |
parent | f85a458f7ab35ee53ab188b3679e05fae5e5819c (diff) | |
download | fpm-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.f90 | 5 |
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 |