diff options
| author | ruki <[email protected]> | 2020-05-14 23:13:17 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-05-14 13:19:43 +0800 |
| commit | 2e838f7c9db7f0cfaff1e15d41821ee9235c1b3a (patch) | |
| tree | 700e83487b15610c91cd699d50b29590a1e03dd2 /xmake/core/project/policy.lua | |
| parent | 46abd569d127f5d77735cc2071018970d34bcd37 (diff) | |
add build.across_targets_in_parallel policy
Diffstat (limited to 'xmake/core/project/policy.lua')
| -rw-r--r-- | xmake/core/project/policy.lua | 8 |
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 |
