[Build] Disable clang21 warnings in third_party

This commit is contained in:
Herman S.
2025-10-24 14:55:37 +09:00
committed by Radosław Gliński
parent f1d444dd99
commit ade064d310

View File

@@ -192,6 +192,12 @@ if os.istarget("linux") and string.contains(CLANG_BIN, "clang") then
"nontrivial-memcall",
})
end
if tonumber(string.match(os.outputof(CLANG_BIN.." --version"), "version (%d%d)")) >= 21 then
filter({"language:C++", "toolset:clang"}) -- "platforms:Linux"
disablewarnings({
"character-conversion", -- Needed for utfcpp third-party library
})
end
end
filter({"language:C", "toolset:clang or gcc"}) -- "platforms:Linux"