summaryrefslogtreecommitdiff
path: root/xmake/core/project/policy.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-05-28 10:46:55 +0800
committerruki <[email protected]>2022-05-28 10:46:55 +0800
commit500a25f81136a0883a479bcd754dcaff2e0bbb04 (patch)
treeee3d279cb11938ddb2770c1a85bfdaec23ea89e1 /xmake/core/project/policy.lua
parent7d5a9b498a47c47554daee8839e4f9caac1dcc64 (diff)
add build.ccache policy
Diffstat (limited to 'xmake/core/project/policy.lua')
-rw-r--r--xmake/core/project/policy.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmake/core/project/policy.lua b/xmake/core/project/policy.lua
index f95918283..775ecef63 100644
--- a/xmake/core/project/policy.lua
+++ b/xmake/core/project/policy.lua
@@ -45,6 +45,8 @@ function policy.policies()
["build.across_targets_in_parallel"] = {description = "Enable compile the source files for each target in parallel.", default = true, type = "boolean"},
-- merge archive intead of linking for all dependent targets
["build.merge_archive"] = {description = "Enable merge archive intead of linking for all dependent targets.", default = false, type = "boolean"},
+ -- C/C++ build cache
+ ["build.ccache"] = {description = "Enable C/C++ build cache.", default = true, type = "boolean"},
-- we need enable longpaths when building target or installing package
["platform.longpaths"] = {description = "Enable long paths when building target or installing package on windows.", default = false, type = "boolean"},
-- lock required packages