diff options
author | Laurence Kedward <laurence.kedward@bristol.ac.uk> | 2021-11-28 11:11:11 +0000 |
---|---|---|
committer | Laurence Kedward <laurence.kedward@bristol.ac.uk> | 2021-11-29 11:54:17 +0000 |
commit | 4556e7a4435c6ef2da8782c033229e06e91b6a4e (patch) | |
tree | f24d55adb5364948ec0733473cf56bfb5dc8daab /src/fpm.f90 | |
parent | fc058eca31036584649cd3b712a649e9dd01c2d7 (diff) | |
download | fpm-4556e7a4435c6ef2da8782c033229e06e91b6a4e.tar.gz fpm-4556e7a4435c6ef2da8782c033229e06e91b6a4e.zip |
Apply suggestion: move echo/verbosity into constructors
For compiler_t and archive_t objects
Diffstat (limited to 'src/fpm.f90')
-rw-r--r-- | src/fpm.f90 | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/fpm.f90 b/src/fpm.f90 index 8b05a38..135cadc 100644 --- a/src/fpm.f90 +++ b/src/fpm.f90 @@ -59,13 +59,10 @@ subroutine build_model(model, settings, package, error) call filewrite(join_path("build", ".gitignore"),["*"]) end if - call new_compiler(model%compiler, settings%compiler, settings%c_compiler) - call new_archiver(model%archiver, settings%archiver) - - model%compiler%verbose = settings%verbose - model%compiler%echo = settings%verbose - model%archiver%verbose = settings%verbose - model%archiver%echo = settings%verbose + call new_compiler(model%compiler, settings%compiler, settings%c_compiler, & + & echo=settings%verbose, verbose=settings%verbose) + call new_archiver(model%archiver, settings%archiver, & + & echo=settings%verbose, verbose=settings%verbose) if (settings%flag == '') then flags = model%compiler%get_default_flags(settings%profile == "release") |