summaryrefslogtreecommitdiff
path: root/xmake/modules
diff options
context:
space:
mode:
authorruki <[email protected]>2020-07-05 11:05:49 +0800
committerruki <[email protected]>2020-07-05 11:05:49 +0800
commit032606e5b54f0dfd36c796dab14197d259209a49 (patch)
treeca4a032ede2b512e3ee2fe53957ed6bf399c8b83 /xmake/modules
parent8874de88d7cc0003c9f83042a39cc7f81a8e88ac (diff)
rename to gfortran toolchains
Diffstat (limited to 'xmake/modules')
-rw-r--r--xmake/modules/detect/tools/find_gfortran.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/xmake/modules/detect/tools/find_gfortran.lua b/xmake/modules/detect/tools/find_gfortran.lua
index 1d5bec7b6..12122abdf 100644
--- a/xmake/modules/detect/tools/find_gfortran.lua
+++ b/xmake/modules/detect/tools/find_gfortran.lua
@@ -31,7 +31,7 @@ import("lib.detect.find_programver")
-- @code
--
-- local gfortran = find_gfortran()
--- local gfortran, version = find_gfortran({program = "gfortran9", version = true})
+-- local gfortran, version = find_gfortran({program = "g95", version = true})
--
-- @endcode
--
@@ -42,6 +42,9 @@ function main(opt)
-- find program
local program = find_program(opt.program or "gfortran", opt)
+ if not program then
+ program = find_program("g95", opt)
+ end
-- find program version
local version = nil