@@ -623,16 +623,22 @@ end function enumerate_libraries
623
623
624
624
625
625
! > Create new compiler instance
626
- subroutine new_compiler (self , fc , cc )
626
+ subroutine new_compiler (self , fc , cc , echo , verbose )
627
627
! > New instance of the compiler
628
628
type (compiler_t), intent (out ) :: self
629
629
! > Fortran compiler name or path
630
630
character (len=* ), intent (in ) :: fc
631
631
! > C compiler name or path
632
632
character (len=* ), intent (in ) :: cc
633
+ ! > Echo compiler command
634
+ logical , intent (in ) :: echo
635
+ ! > Verbose mode: dump compiler output
636
+ logical , intent (in ) :: verbose
633
637
634
638
self% id = get_compiler_id(fc)
635
-
639
+
640
+ self% echo = echo
641
+ self% verbose = verbose
636
642
self% fc = fc
637
643
if (len_trim (cc) > 0 ) then
638
644
self% cc = cc
@@ -643,11 +649,15 @@ end subroutine new_compiler
643
649
644
650
645
651
! > Create new archiver instance
646
- subroutine new_archiver (self , ar )
652
+ subroutine new_archiver (self , ar , echo , verbose )
647
653
! > New instance of the archiver
648
654
type (archiver_t), intent (out ) :: self
649
655
! > User provided archiver command
650
656
character (len=* ), intent (in ) :: ar
657
+ ! > Echo compiler command
658
+ logical , intent (in ) :: echo
659
+ ! > Verbose mode: dump compiler output
660
+ logical , intent (in ) :: verbose
651
661
652
662
integer :: estat, os_type
653
663
@@ -681,7 +691,8 @@ subroutine new_archiver(self, ar)
681
691
end if
682
692
end if
683
693
self% use_response_file = os_type == OS_WINDOWS
684
- self% echo = .true.
694
+ self% echo = echo
695
+ self% verbose = verbose
685
696
end subroutine new_archiver
686
697
687
698
0 commit comments