summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2020-07-11 00:59:13 +0800
committerruki <[email protected]>2020-07-10 23:55:18 +0800
commit6845de04668f18e2ab1383a919279b3b29d89057 (patch)
tree3dfb1155f6c209694b10dcc283007a545c1f7660
parent88ff5e9f82816e8800d3326def6e8e6d1c4f5f4c (diff)
improve fortran rule
-rw-r--r--xmake/rules/fortran/xmake.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/rules/fortran/xmake.lua b/xmake/rules/fortran/xmake.lua
index 6f91924d6..1e40b2c71 100644
--- a/xmake/rules/fortran/xmake.lua
+++ b/xmake/rules/fortran/xmake.lua
@@ -35,7 +35,9 @@ rule("fortran.build")
-- we disable to build across targets in parallel, because the source files may depend on other target modules
target:set("policy", "build.across_targets_in_parallel", false)
end)
- on_build_files("private.action.build.object", {batch = true})
+ on_build_files(function (target, sourcebatch, opt)
+ import("private.action.build.object").build(target, sourcebatch, opt)
+ end)
-- define rule: fortran
rule("fortran")