diff options
| author | ruki <[email protected]> | 2023-01-16 22:47:18 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-01-16 22:47:18 +0800 |
| commit | 503e32aa9f2b40e3f5c3167e67d732c79ec26440 (patch) | |
| tree | 46891ab47b1422fb15e66f110feb73d46b9aacea /xmake/core/tool/builder.lua | |
| parent | 525cc07aac1c9663f86078cb6c5af88576ede25b (diff) | |
fix check flags
Diffstat (limited to 'xmake/core/tool/builder.lua')
| -rw-r--r-- | xmake/core/tool/builder.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/xmake/core/tool/builder.lua b/xmake/core/tool/builder.lua index 9fa225155..9070cca85 100644 --- a/xmake/core/tool/builder.lua +++ b/xmake/core/tool/builder.lua @@ -343,6 +343,12 @@ function builder:_add_flags_from_language(flags, target, getters) local flagscope = flaginfo[1] local flagname = flaginfo[2] local checkstate = flaginfo[3] + if checkstate then + local auto_ignore_flags = target and target.policy and target:policy("check.auto_ignore_flags") + if auto_ignore_flags == false then + checkstate = false + end + end -- get getter local getter = getters[flagscope] |
