aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-12-15 10:12:34 -0500
committerJack Lloyd <[email protected]>2017-12-15 10:12:34 -0500
commit5b6efbc5b037b160f8020a4cb3bef906310c8615 (patch)
tree91b9131695edf682c8eea245a6d4dcc5063181f8
parent7b2f3cd974090efd07650753827bb4a7b6c4053b (diff)
Update comment [ci skip]
-rw-r--r--src/build-data/detect_version.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/build-data/detect_version.cpp b/src/build-data/detect_version.cpp
index 709e06c45..42c4a2605 100644
--- a/src/build-data/detect_version.cpp
+++ b/src/build-data/detect_version.cpp
@@ -19,12 +19,14 @@
#elif defined(__clang__) && defined(__apple_build_version__)
/*
- Map Apple XCode versions back to standard Clang
-
- This is not a complete map, since we don't support any versions of
- Clang before 3.5 in any case, and it arbitrarily maps any version with
- XCode >= 9 to Clang 4.0. This is fine because we don't currently need
- any features not available in Clang 4.0
+ Map Apple LLVM versions as used in XCode back to standard Clang.
+ This is not exact since the versions used in XCode are actually
+ forks of Clang and do not coorespond perfectly to standard Clang
+ releases. In addition we don't bother mapping very old versions
+ (anything before XCode 7 is treated like Clang 3.5, which is the
+ oldest version we support) and for "future" versions we simply
+ treat them as Clang 4.0, since we don't currenly rely on any
+ features not included in 4.0
*/
#if __clang_major__ >= 9