From 2388953dffb456b6905d789fa85186810bccaae3 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 11 Oct 2019 09:24:33 +0200 Subject: Switch clang-apple to primary/variant version setup --- libbuild2/cc/compile-rule.cxx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'libbuild2/cc/compile-rule.cxx') 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; -- cgit v1.1