summaryrefslogtreecommitdiff
path: root/xmake/core/project
diff options
context:
space:
mode:
authorArthur LAURENT <[email protected]>2023-01-11 17:58:02 +0100
committerArthur LAURENT <[email protected]>2023-01-11 17:58:02 +0100
commit8a582f9a9fb7be2cfbfdd2f18f31510547dff12b (patch)
treeb78c723874d355376c65faddf9c42181da5b39fe /xmake/core/project
parent1175f07e0ead7a1f8a5d9cb76d895e1ea9b01ad0 (diff)
rename clang std modulemap policy
Diffstat (limited to 'xmake/core/project')
-rw-r--r--xmake/core/project/policy.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/project/policy.lua b/xmake/core/project/policy.lua
index 4c0d1a793..4c9f87cd1 100644
--- a/xmake/core/project/policy.lua
+++ b/xmake/core/project/policy.lua
@@ -35,8 +35,6 @@ function policy.policies()
if not policies then
policies =
{
- -- enable clang std modulemap
- ["c++.clang.module.stdmodules"] = {description = "Enable clang std modulemap.", default = false, 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.
@@ -55,6 +53,8 @@ function policy.policies()
["build.optimization.lto"] = {description = "Enable LTO linker-time optimization for c/c++ building.", type = "boolean"},
-- enable C++ modules for C++ building, even if no .mpp is involved in the compilation
["build.c++.modules"] = {description = "Enable C++ modules for C++ building.", type = "boolean"},
+ -- enable clang std modulemap
+ ["build.c++.clang.stdmodules"] = {description = "Enable clang std modulemap.", default = false, type = "boolean"},
-- preprocessor configuration for ccache/distcc, we can disable linemarkers to speed up preprocess
["preprocessor.linemarkers"] = {description = "Enable linemarkers for preprocessor.", default = true, type = "boolean"},
-- preprocessor configuration for ccache/distcc, we can disable it to avoid cache object file with __DATE__, __TIME__