Apple calls llvm/clang 10 Xcode 12, update warning flags.

This commit is contained in:
Vas Crabb 2020-10-29 12:40:25 +11:00
parent 37c4696b82
commit 3a3e83d6b2

View File

@ -1082,7 +1082,7 @@ end
"-Wno-pragma-pack" -- clang 6.0 complains when the packing change lifetime is not contained within a header file.
}
end
if (version >= 100000) and (_OPTIONS["targetos"] ~= 'macosx') then -- TODO when Xcode includes clang 10, update this to detect the vanity version number
if ((version >= 100000) and (_OPTIONS["targetos"] ~= 'macosx')) or (version >= 120000) then
buildoptions {
"-Wno-xor-used-as-pow " -- clang 10.0 complains that expressions like 10 ^ 7 look like exponention
}