[llvm-commits] [llvm] r140188 - /llvm/trunk/lib/Support/Unix/Host.inc

Bob Wilson bob.wilson at apple.com
Tue Sep 20 15:05:56 PDT 2011


Author: bwilson
Date: Tue Sep 20 17:05:56 2011
New Revision: 140188

URL: http://llvm.org/viewvc/llvm-project?rev=140188&view=rev
Log:
Remove the hack to check UNAME_RELEASE when identifying the Darwin version.

This was only needed to locate llvm-gcc's installation directory when clang
falls back to run llvm-gcc for i386 kexts.  As of clang svn r140187, we're
now just searching paths with several different Darwin versions on either
side of the current version, so this is no longer needed.

Modified:
    llvm/trunk/lib/Support/Unix/Host.inc

Modified: llvm/trunk/lib/Support/Unix/Host.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Unix/Host.inc?rev=140188&r1=140187&r2=140188&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Unix/Host.inc (original)
+++ llvm/trunk/lib/Support/Unix/Host.inc Tue Sep 20 17:05:56 2011
@@ -29,15 +29,6 @@
 static std::string getOSVersion() {
   struct utsname info;
 
-#ifdef __APPLE__
-  // Recognize UNAME_RELEASE environment variable to match Darwin's uname,
-  // where the value of this variable sets the OS release version
-  // reported by "uname -r".
-  const char *UnameOverride = ::getenv("UNAME_RELEASE");
-  if (UnameOverride && UnameOverride[0] != '\0')
-    return UnameOverride;
-#endif // __APPLE__
-
   if (uname(&info))
     return "";
 





More information about the llvm-commits mailing list