summaryrefslogtreecommitdiff
path: root/xmake/core/tool/builder.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-05-14 23:07:12 +0800
committerruki <[email protected]>2020-05-14 12:43:17 +0800
commit0648c5178d1fabbaa082db10aeb1fa6bf822bd6a (patch)
tree1ec16af65d357a0761b90117e57135c58ccbc541 /xmake/core/tool/builder.lua
parentc2e533cef2040461bb77a64349d28db924d4150b (diff)
get default policy value
Diffstat (limited to 'xmake/core/tool/builder.lua')
-rw-r--r--xmake/core/tool/builder.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/tool/builder.lua b/xmake/core/tool/builder.lua
index 9c741f664..bb65acc0b 100644
--- a/xmake/core/tool/builder.lua
+++ b/xmake/core/tool/builder.lua
@@ -70,7 +70,7 @@ function builder:_mapflag(flag, flagkind, mapflags, auto_ignore_flags)
if auto_ignore_flags == false or self:has_flags(flag, flagkind) then
return flag
else
- utils.warning("add_%s(\"%s\") is ignored, please pass `{force = true}` if you want to set it.", flagkind, flag)
+ utils.warning("add_%s(\"%s\") is ignored, please pass `{force = true}` or call `set_policy(\"check.auto_ignore_flags\", false)` if you want to set it.", flagkind, flag)
end
end
@@ -94,7 +94,7 @@ function builder:_mapflags(flags, flagkind, target)
if auto_ignore_flags == false or self:has_flags(flag, flagkind) then
table.insert(results, flag)
else
- utils.warning("add_%s(\"%s\") is ignored, please pass `{force = true}` if you want to set it.", flagkind, flag)
+ utils.warning("add_%s(\"%s\") is ignored, please pass `{force = true}` or call `set_policy(\"check.auto_ignore_flags\", false)` if you want to set it.", flagkind, flag)
end
end
end