diff options
author | Laurence Kedward <laurence.kedward@bristol.ac.uk> | 2021-04-17 17:18:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-17 17:18:50 +0100 |
commit | fbbfb2c1c316674a83acd666754a3fd18b643d84 (patch) | |
tree | fc38bd0d71a615dac4e847e891771b292cfb1e75 /src/fpm_backend.f90 | |
parent | 4cbf9194e47991a208cd61b1f3a0a55f0ae16573 (diff) | |
parent | 079e7da06181a6dc9cee6f8f3b1b1c4ebde9e573 (diff) | |
download | fpm-fbbfb2c1c316674a83acd666754a3fd18b643d84.tar.gz fpm-fbbfb2c1c316674a83acd666754a3fd18b643d84.zip |
Merge pull request #433 from LKedward/intel-c
Fix to allow compiling C with Intel CC
Diffstat (limited to 'src/fpm_backend.f90')
-rw-r--r-- | src/fpm_backend.f90 | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/fpm_backend.f90 b/src/fpm_backend.f90 index 74cef61..8c4cf40 100644 --- a/src/fpm_backend.f90 +++ b/src/fpm_backend.f90 @@ -30,8 +30,8 @@ module fpm_backend use fpm_environment, only: run use fpm_filesystem, only: dirname, join_path, exists, mkdir use fpm_model, only: fpm_model_t -use fpm_targets, only: build_target_t, build_target_ptr, & - FPM_TARGET_OBJECT, FPM_TARGET_ARCHIVE, FPM_TARGET_EXECUTABLE +use fpm_targets, only: build_target_t, build_target_ptr, FPM_TARGET_OBJECT, & + FPM_TARGET_C_OBJECT, FPM_TARGET_ARCHIVE, FPM_TARGET_EXECUTABLE use fpm_strings, only: string_cat @@ -241,6 +241,10 @@ subroutine build_target(model,target) call run(model%fortran_compiler//" -c " // target%source%file_name // target%compile_flags & // " -o " // target%output_file) + case (FPM_TARGET_C_OBJECT) + call run(model%c_compiler//" -c " // target%source%file_name // target%compile_flags & + // " -o " // target%output_file) + case (FPM_TARGET_EXECUTABLE) call run(model%fortran_compiler// " " // target%compile_flags & |