summaryrefslogtreecommitdiff
path: root/xmake/core/project/target.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-05-14 23:02:01 +0800
committerruki <[email protected]>2020-05-14 12:12:09 +0800
commitc2e533cef2040461bb77a64349d28db924d4150b (patch)
treeb1fb0622cd61514be099ec30c3f282c1b3f169e4 /xmake/core/project/target.lua
parentf7ece67bf3f768f98b22818aa13afd65a00831d7 (diff)
check flags policy
Diffstat (limited to 'xmake/core/project/target.lua')
-rw-r--r--xmake/core/project/target.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/project/target.lua b/xmake/core/project/target.lua
index b466c9e2e..3382910d7 100644
--- a/xmake/core/project/target.lua
+++ b/xmake/core/project/target.lua
@@ -33,6 +33,7 @@ local deprecated = require("base/deprecated")
local rule = require("project/rule")
local option = require("project/option")
local config = require("project/config")
+local policy = require("project/policy")
local requireinfo = require("project/requireinfo")
local tool = require("tool/tool")
local linker = require("tool/linker")
@@ -472,8 +473,7 @@ end
function _instance:policy(name)
local policies = self:get("policy")
if policies then
- local value = policies[name]
- return value and table.unwrap(value)
+ return policy.check(name, policies[name])
end
end