summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2026-03-26 22:47:17 +0800
committerruki <[email protected]>2026-03-26 22:47:17 +0800
commitfe60194acb7098fc0824bea9b653fb5a28114a3d (patch)
treec7aef1d83c5175a8a1a01f4242ce0ae419c7efc9
parentc24e4bcd8d8fb444d08fb317f839b830a9a633ef (diff)
fix gcc has_flags
-rw-r--r--xmake/modules/core/tools/gcc/has_flags.lua6
1 files changed, 0 insertions, 6 deletions
diff --git a/xmake/modules/core/tools/gcc/has_flags.lua b/xmake/modules/core/tools/gcc/has_flags.lua
index d4db0461f..32662e1a0 100644
--- a/xmake/modules/core/tools/gcc/has_flags.lua
+++ b/xmake/modules/core/tools/gcc/has_flags.lua
@@ -72,12 +72,6 @@ function _check_from_knownargs(flags, opt, islinker)
if known_flags:has(flag) then
return true
end
- -- check flags with known prefixes
- if not islinker then
- if flag:startswith("-Wno-") then -- -Wno-xxx is always silently accepted
- return true
- end
- end
end
-- attempt to check it from the argument list