diff options
author | Laurence Kedward <laurence.kedward@bristol.ac.uk> | 2022-02-14 19:04:35 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-14 19:04:35 +0000 |
commit | 2c6148e0f9ceafc55da934b8b84299f05a3c030c (patch) | |
tree | 0f2c9d40a6410eebee73a4dcf8836cced6b27c0d /src/fpm_targets.f90 | |
parent | 57b5636f5f573f06326fdecd24057a6297a53501 (diff) | |
parent | d2009f179da1ddd83d92666f6395cf72414d1be2 (diff) | |
download | fpm-2c6148e0f9ceafc55da934b8b84299f05a3c030c.tar.gz fpm-2c6148e0f9ceafc55da934b8b84299f05a3c030c.zip |
Merge pull request #622 from LKedward/backend-output
Cleanup the backend output
Diffstat (limited to 'src/fpm_targets.f90')
-rw-r--r-- | src/fpm_targets.f90 | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/fpm_targets.f90 b/src/fpm_targets.f90 index 7ea815b..122d73a 100644 --- a/src/fpm_targets.f90 +++ b/src/fpm_targets.f90 @@ -75,6 +75,9 @@ type build_target_t !> File path of output directory character(:), allocatable :: output_dir + !> File path of build log file relative to cwd + character(:), allocatable :: output_log_file + !> Primary source for this build target type(srcfile_t), allocatable :: source @@ -491,6 +494,7 @@ subroutine resolve_target_linking(targets, model) end if target%output_dir = get_output_dir(model%build_prefix, target%compile_flags) target%output_file = join_path(target%output_dir, target%output_name) + target%output_log_file = join_path(target%output_dir, target%output_name)//'.log' end associate end do @@ -528,7 +532,8 @@ subroutine resolve_target_linking(targets, model) target%output_dir = get_output_dir(model%build_prefix, & & target%compile_flags//local_link_flags) target%output_file = join_path(target%output_dir, target%output_name) - end if + target%output_log_file = join_path(target%output_dir, target%output_name)//'.log' + end if end associate |