diff options
author | Laurence Kedward <laurence.kedward@bristol.ac.uk> | 2021-11-25 15:53:29 +0000 |
---|---|---|
committer | Laurence Kedward <laurence.kedward@bristol.ac.uk> | 2021-11-25 15:53:29 +0000 |
commit | ab7cb42fddc3cf19fe20c76dac527a9e591b11c2 (patch) | |
tree | 4b1b6359b45f9936fa4732ed9375b5797604239d /src/fpm_targets.f90 | |
parent | b628302b8417c12d5ca4ead439f636f198352b55 (diff) | |
download | fpm-ab7cb42fddc3cf19fe20c76dac527a9e591b11c2.tar.gz fpm-ab7cb42fddc3cf19fe20c76dac527a9e591b11c2.zip |
Update: fpm_compiler & backend to redirect output to log files
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 |