summaryrefslogtreecommitdiff
path: root/xmake/core/project/policy.lua
diff options
context:
space:
mode:
authorArthur LAURENT <[email protected]>2023-01-11 17:31:14 +0100
committerArthur LAURENT <[email protected]>2023-01-11 17:31:14 +0100
commit98e4399340bca560915c8faef19a632840046a0e (patch)
tree5d998779c531c71bcc2e2151110999bef403df83 /xmake/core/project/policy.lua
parenta70a59a68f39d9c9ba3538baa94dcce6132f1241 (diff)
use policies instead of target values
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 8148a37e2..ac93415f9 100644
--- a/xmake/core/project/policy.lua
+++ b/xmake/core/project/policy.lua
@@ -35,6 +35,8 @@ 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.