summaryrefslogtreecommitdiff
path: root/xmake/core/project/policy.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-05-14 23:13:17 +0800
committerruki <[email protected]>2020-05-14 13:19:43 +0800
commit2e838f7c9db7f0cfaff1e15d41821ee9235c1b3a (patch)
tree700e83487b15610c91cd699d50b29590a1e03dd2 /xmake/core/project/policy.lua
parent46abd569d127f5d77735cc2071018970d34bcd37 (diff)
add build.across_targets_in_parallel policy
Diffstat (limited to 'xmake/core/project/policy.lua')
-rw-r--r--xmake/core/project/policy.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/xmake/core/project/policy.lua b/xmake/core/project/policy.lua
index 4f70aa92c..415ca4a31 100644
--- a/xmake/core/project/policy.lua
+++ b/xmake/core/project/policy.lua
@@ -35,8 +35,12 @@ function policy.policies()
if not policies then
policies =
{
- ["check.auto_ignore_flags"] = { description = "Enable check and ignore unsupported flags automatically.", default = true, type = "boolean"},
- ["check.auto_map_flags"] = { description = "Enable map gcc flags to the current compiler and linker automatically.", default = true, type = "boolean"}
+ -- we will check and ignore all unsupported flags by default, but we can also pass `{force = true}` to force to set flags, e.g. add_ldflags("-static", {force = true})
+ ["check.auto_ignore_flags"] = {description = "Enable check and ignore unsupported flags automatically.", default = true, type = "boolean"},
+ -- we will map gcc flags to the current compiler and linker by default.
+ ["check.auto_map_flags"] = {description = "Enable map gcc flags to the current compiler and linker automatically.", default = true, type = "boolean"},
+ -- we can compile the source files for each target in parallel
+ ["build.across_targets_in_parallel"] = {description = "Enable compile the source files for each target in parallel.", default = true, type = "boolean"}
}
policy._POLICIES = policies
end