Enumerate libraries, based on compiler and platform
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(compiler_t), | intent(in) | :: | self | |||
character(len=*), | intent(in) | :: | prefix | |||
type(string_t), | intent(in) | :: | libs(:) |
function enumerate_libraries(self, prefix, libs) result(r)
class(compiler_t), intent(in) :: self
character(len=*), intent(in) :: prefix
type(string_t), intent(in) :: libs(:)
character(len=:), allocatable :: r
if (self%id == id_intel_classic_windows .or. &
self%id == id_intel_llvm_windows) then
r = prefix // " " // string_cat(libs,".lib ")//".lib"
else
r = prefix // " -l" // string_cat(libs," -l")
end if
end function enumerate_libraries