diff options
| -rw-r--r-- | xmake/core/project/target.lua | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/xmake/core/project/target.lua b/xmake/core/project/target.lua index f20d0e3f7..af78ee398 100644 --- a/xmake/core/project/target.lua +++ b/xmake/core/project/target.lua @@ -643,7 +643,14 @@ function _instance:policy(name) end end end - return policy.check(name, policies and policies[name]) + local value + if policies then + value = policies[name] + end + if value == nil and target._project() then + value = target._project().policy(name) + end + return policy.check(name, value) end -- get the base name of target file |
