aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/cc/compile-rule.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-10-11 09:24:33 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-10-11 09:24:33 +0200
commit2388953dffb456b6905d789fa85186810bccaae3 (patch)
treef79e898defdca21706685d85f80e3083f003c29e /libbuild2/cc/compile-rule.cxx
parent2fb22e7b4aedcb62bb3a4d868c311237f3537a2f (diff)
Switch clang-apple to primary/variant version setup
Diffstat (limited to 'libbuild2/cc/compile-rule.cxx')
-rw-r--r--libbuild2/cc/compile-rule.cxx10
1 files changed, 2 insertions, 8 deletions
diff --git a/libbuild2/cc/compile-rule.cxx b/libbuild2/cc/compile-rule.cxx
index cf2f2a8..c46355c 100644
--- a/libbuild2/cc/compile-rule.cxx
+++ b/libbuild2/cc/compile-rule.cxx
@@ -2588,15 +2588,9 @@ namespace build2
}
case compiler_type::clang:
{
- // -frewrite-includes is available since vanilla Clang 3.2.0.
+ // -frewrite-includes is available since Clang 3.2.0.
//
- // Apple Clang 5.0 is based on LLVM 3.3svn so it should have this
- // option (4.2 is based on 3.2svc so it may or may not have it and,
- // no, we are not going to try to find out).
- //
- if (cvariant == "apple"
- ? (cmaj >= 5)
- : (cmaj > 3 || (cmaj == 3 && cmin >= 2)))
+ if (cmaj > 3 || (cmaj == 3 && cmin >= 2))
pp = "-frewrite-includes";
break;