Added check that fcsnippets only run if fcld set

The test on the presence of gfortran may not guarantee the linker is
properly set.  The new test check that fcld is also set, for now to
gfortran since the test on the Fortran compiler only considers this
compiler.

Note: this way, fcsnippets are only run if --toolchain=gfortran is set.
pull/5258/head
Julien Bloino 5 months ago
parent 039c45b505
commit 3c77ada905
  1. 2
      packages/m/mkl/xmake.lua

@ -181,7 +181,7 @@ package("mkl")
}
]]}, {includes = "mkl_cblas.h"}))
import("lib.detect.find_tool")
if package.check_fcsnippets and find_tool("gfortran") then
if package.check_fcsnippets and find_tool("gfortran") and package:has_tool("fcld", "gfortran") then
assert(package:check_fcsnippets({test = [[
program test
use iso_fortran_env, only: r64 => real64

Loading…
Cancel
Save