@@ -36,19 +36,19 @@ subroutine init_blas(this, compiler, error)
36
36
this% has_external_modules = .false.
37
37
38
38
if (get_os_type() == OS_MACOS) then
39
- if (compile_and_link_flags_supported(this, compiler, " -framework Accelerate" )) then
39
+ if (compile_and_link_flags_supported(compiler, " -framework Accelerate" )) then
40
40
call set_compile_and_link_flags(this, compiler, " -framework Accelerate" )
41
41
return
42
42
end if
43
43
end if
44
44
45
45
if (compiler% is_intel()) then
46
46
if (get_os_type() == OS_WINDOWS) then
47
- if (compile_and_link_flags_supported(this, compiler, " /Qmkl" )) then
47
+ if (compile_and_link_flags_supported(compiler, " /Qmkl" )) then
48
48
call set_compile_and_link_flags(this, compiler, " /Qmkl" )
49
49
return
50
50
end if
51
- else if (compile_and_link_flags_supported(this, compiler, " -qmkl" )) then
51
+ else if (compile_and_link_flags_supported(compiler, " -qmkl" )) then
52
52
call set_compile_and_link_flags(this, compiler, " -Qmkl" )
53
53
return
54
54
endif
@@ -72,15 +72,12 @@ subroutine init_blas(this, compiler, error)
72
72
call fatal_error(error, ' pkg-config could not find a suitable blas package.' )
73
73
end subroutine init_blas
74
74
75
- function compile_and_link_flags_supported (this , compiler , flags ) result(is_supported)
76
- class(metapackage_t), intent (in ) :: this
75
+ function compile_and_link_flags_supported (compiler , flags ) result(is_supported)
77
76
type (compiler_t), intent (in ) :: compiler
78
77
character (len=* ), intent (in ) :: flags
79
78
logical :: is_supported
80
79
81
- is_supported = compiler% check_flags_supported( &
82
- compile_flags= flags, &
83
- link_flags= flags)
80
+ is_supported = compiler% check_flags_supported(ompile_flags= flags, link_flags= flags)
84
81
end function compile_and_link_flags_supported
85
82
86
83
subroutine set_compile_and_link_flags (this , compiler , flags )
0 commit comments