summaryrefslogtreecommitdiff
path: root/xmake/rules
diff options
context:
space:
mode:
authorruki <[email protected]>2022-05-01 22:17:30 +0800
committerruki <[email protected]>2022-05-01 22:17:47 +0800
commite456ecaf8539a67d5e0d3354d7bd5eb9727852a0 (patch)
treec9205b4c853a0dbe6c2da9f9c5c789250d240a09 /xmake/rules
parent6948a822ea35dc61092dedadfaaa7e542c81f202 (diff)
add nvc and nvc++ support
Diffstat (limited to 'xmake/rules')
-rw-r--r--xmake/rules/fortran/xmake.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/rules/fortran/xmake.lua b/xmake/rules/fortran/xmake.lua
index ffec0edea..4ab11906d 100644
--- a/xmake/rules/fortran/xmake.lua
+++ b/xmake/rules/fortran/xmake.lua
@@ -21,7 +21,7 @@
-- define rule: fortran.build.modules
rule("fortran.build.modules")
before_build(function (target)
- if not is_host("windows") then
+ if target:has_tool("fc", "gfortran") then
local modulesdir = target:values("fortran.moduledir") or path.join(target:objectdir(), ".modules")
os.mkdir(modulesdir)
target:add("fcflags", "-J" .. modulesdir)