summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2020-10-29 12:40:25 +1100
committer Vas Crabb <vas@vastheman.com>2020-10-29 12:40:25 +1100
commit3a3e83d6b236b8afbaba77bdc6b85f64ca4455ee (patch)
tree24c3ef022091e3ae93e8aad83af902707aa8df17
parent37c4696b82c633694acd3df141c311e4e5f0dab4 (diff)
Apple calls llvm/clang 10 Xcode 12, update warning flags.
-rw-r--r--scripts/genie.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/genie.lua b/scripts/genie.lua
index 4665349c98f..e02c29ec3e7 100644
--- a/scripts/genie.lua
+++ b/scripts/genie.lua
@@ -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
}