summaryrefslogtreecommitdiff
path: root/xmake/rules/fortran/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-07-05 10:32:38 +0800
committerruki <[email protected]>2020-07-05 10:34:37 +0800
commitc14bfc6fa4e30b2a2af6cb7500bd7b7c16896472 (patch)
treed5d682e10937cdebc6fa9285e1e2978a4f17ec21 /xmake/rules/fortran/xmake.lua
parent22229713a006394d0bb5d70865850bad60898f00 (diff)
add fortran static library tests
Diffstat (limited to 'xmake/rules/fortran/xmake.lua')
-rw-r--r--xmake/rules/fortran/xmake.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/rules/fortran/xmake.lua b/xmake/rules/fortran/xmake.lua
index c4b630be7..1e694cfd8 100644
--- a/xmake/rules/fortran/xmake.lua
+++ b/xmake/rules/fortran/xmake.lua
@@ -21,6 +21,10 @@
-- define rule: fortran.build
rule("fortran.build")
set_sourcekinds("fc")
+ on_load(function (target)
+ -- 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})
-- define rule: fortran