Skip to content

Commit

Permalink
Windows archiver: also search for gcc-ar
Browse files Browse the repository at this point in the history
  • Loading branch information
perazz committed Aug 26, 2024
1 parent 4030a8a commit 1e82828
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/fpm_compiler.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1065,8 +1065,14 @@ subroutine new_archiver(self, ar, echo, verbose)
if (os_type /= OS_WINDOWS .and. os_type /= OS_UNKNOWN) then
self%ar = "ar"//arflags
else
! Attempt "ar"
call execute_command_line("ar --version > "//get_temp_filename()//" 2>&1", &
& exitstat=estat)

! Then "gcc-ar"
if (estat /= 0) call execute_command_line("gcc-ar --version > "//get_temp_filename()//" 2>&1", &
& exitstat=estat)

if (estat /= 0) then
self%ar = "lib"//libflags
else
Expand Down

0 comments on commit 1e82828

Please sign in to comment.