Fix apple clang detection in lit.cfg
authorEric Fiselier <eric@efcs.ca>
Sat, 6 Dec 2014 22:49:38 +0000 (22:49 +0000)
committerEric Fiselier <eric@efcs.ca>
Sat, 6 Dec 2014 22:49:38 +0000 (22:49 +0000)
llvm-svn: 223597

libcxx/test/lit.cfg

index 7c8d268..8c806ee 100644 (file)
@@ -293,7 +293,7 @@ class Configuration(object):
         if '__clang__' in macros.keys():
             compiler_name = 'clang'
             # Treat apple's llvm fork differently.
-            if '__apple_build_type__' in macros.keys():
+            if '__apple_build_version__' in macros.keys():
                 compiler_name = 'apple-clang'
             major_ver = macros['__clang_major__']
             minor_ver = macros['__clang_minor__']